用jbuilder通过wsdl文件创建的webservice无法运行,高手进
最近接入移动misc,需要建立webservice来响应misc的请求,他们给的wsdl文件如下:
<definitions xmlns:ws="http://www.monternet.com/dsmp/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.ort/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:dsmp="http://www.monternet.com/dsmp/schemas/" targetNamespace="http://www.monternet.com/dsmp/wsdl/">
<types>
<schema targetNamespace="http://www.monternet.com/dsmp/schemas/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
<complexType name="address_info_schema">
<sequence>
<element name="DeviceType" type="xsd:integer"/>
<element name="DeviceID" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="user_id_schema">
<sequence>
<element name="UserIDType" type="xsd:integer"/>
<element name="MSISDN" type="xsd:string"/>
<element name="PseudoCode" type="xsd:base64Binary"/>
</sequence>
</complexType>
<!-- request & response -->
<element name="TransactionID" type="xsd:string"/>
<element name="SyncOrderRelationReq" type="dsmp:SyncOrderRelationReqType"/>
<complexType name="SyncOrderRelationReqType">
<sequence>
<element name="Version" type="xsd:string"/>
<element name="MsgType" type="xsd:string"/>
<element name="Send_Address" type="dsmp:address_info_schema"/>
<element name="Dest_Address" type="dsmp:address_info_schema"/>
<element name="FeeUser_ID" type="dsmp:user_id_schema"/>
<element name="DestUser_ID" type="dsmp:user_id_schema"/>
<element name="LinkID" type="xsd:string" minOccurs="0"/>
<element name="ActionID" type="xsd:integer"/>
<element name="ActionReasonID" type="xsd:integer"/>
<element name="SPID" type="xsd:string" minOccurs="0"/>
<element name="SPServiceID" type="xsd:string"/>
<element name="AccessMode" type="xsd:integer" minOccurs="0"/>
<element name="FeatureStr" type="xsd:base64Binary" minOccurs="0"/>
</sequence>
</complexType>
<element name="SyncOrderRelationResp" type="dsmp:SyncOrderRelationRespType"/>
<complexType name="SyncOrderRelationRespType">
<sequence>
<element name="Version" type="xsd:string"/>
<element name="MsgType" type="xsd:string"/>
<element name="hRet" type="xsd:integer"/>
</sequence>
</complexType>
</schema>
</types>
<message name="ma.SyncOrderRelationReq">
<part name="SyncOrderRelationInput" element="dsmp:SyncOrderRelationReq"/>
<part name="TransactionIDInput" element="dsmp:TransactionID"/>
</message>
<message name="ma.SyncOrderRelationResp">
<part name="SyncOrderRelationOutput" element="dsmp:SyncOrderRelationResp"/>
<part name="TransactionIDOut" element="dsmp:TransactionID"/>
</message>
<portType name="maPort">
<operation name="SyncOrderRelation">
<input message="ws:ma.SyncOrderRelationReq"/>
<output message="ws:ma.SyncOrderRelationResp"/>
</operation>
</portType>
<binding name="maPortBinding" type="ws:maPort">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="SyncOrderRelation">
<soap:operation style="document" soapAction="sim.SyncOrderRelation"/>
<input>
<soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.monternet.com/dsmp/schemas/"/>
<soap:header message="ws:ma.SyncOrderRelationReq" part="TransactionIDInput" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" namespace="http://www.w3.org/2001/XMLSchema"/>
</input>
<output>
<soap:body use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.monternet.com/dsmp/schemas/"/>
<soap:header style="document" message="ws:ma.SyncOrderRelationResp" part="TransactionIDOut" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding" namespace="http://www.w3.org/2001/XMLSchema"/>
</output>
</operation>
</binding>
<service name="dsmp">
<port name="maPort" binding="ws:maPortBinding">
<soap:address location="http://192.168.1.59:8080/web/services/maPort"/>
</port>
</service>
</definitions>