flex webservice与wsdl

一般wsdl提供的URL http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl
客户发过来了wsdl文件,没有具体的******?wsdl
在soapUI中分析出endpoint,set url=endpoint,请求发送不了。
经过尝试,url还应该是本地的客户过来的wsdl文件,这样请求可以发送了。
在as中注意webService.wsdl=url,请求也发送不了,必须加上webService.loadWSDL()

或者webService.loadWSDL(url)

还有endpointURL用于url redirect


wsdl文件 在flexBuild中通过import,生产input/output的as文件

crossdomain 要加上allow-http-request-headers-from,不然还是有权限问题 

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

在flex中,在传参返回值不需要request/response类,开始我就犯了这样的错误


siebel产生endpoint,这是很奇怪的,无法看到wsdl,难道是为了安全吗?

http://eqcmswebdv01.nam.nsroot.net/eai_enu/start.swe?SWEExtSource=CustomUI&SWEExtCmd=Execute&UserName=SADMIN&Password=SADMIN

a way to generate wsdl

Stepsto Create Siebel Inbound Web Service:

 

  1. Login to Siebel epharma client    User Name: SADMIN:Password: SADMIN
         go to Site Map
  1. Click on Web Services Administration Screen Tab
  2. Now click on Inbound Web Services View Tab
  3. Create a New Record in Inbound Web Services List Applet
  4. In Namespace write “http://siebel.com/asi/
  5. In Name write “Directutor Contact”
  6. Make status as “Active”
  7. Comment is not a mandatory field. You can write any meaningful comment for your reference.
  8. Create a New record in Service Ports List Applet.
  9. In Name write “Directutor Contact”
  10. In Type click on the Glyph.
  11. From Pick Applet select “Siebel Contact”
  12. Then Type will come as “Business Service” in Service Ports List Applet.
  13. Now Select “HTTP” as Transport medium.
  14. Select Binding as “SOAP_DOC_LITERAL”
  15. In Address write the following string

                   http://dtsiebsrv1/eai_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=SADMIN&Password=SADMIN

  1. Now in the Operations List Applet Add methods.
  2. From the Pick Applet Select methods like “Insert”, “Update”, “Delete” etc.
  3. Make the Authentication Type as “None”
  4. Now click the “Clear Cache” tab 2-3 times.
  5. Finally click on the “Generate WSDL” button to generate the WSDL file & save the file with .wsdl extension.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值