wcf - Where is the request model in this vendor WSDL? -


i'm attempting create user accounts vendor tool in batches. asked vendor how turn on mex endpoint creating single account , adjusted config file accordingly.

i able create service reference, have in visual studio client , 2 interfaces. can't tell how create request. client has invokeservice method, takes object.

i replicated vendors class structure in code, service didn't type. so, updated classes use vendor's original namespace, service still didn't it.

type 'life.businessservice.basebusinessdatamodel.businessrequest' data contract name 'businessrequest:http://schemas.datacontract.org/2004/07/life.businessservice.basebusinessdatamodel' not expected. consider using datacontractresolver or add types not known statically list of known types - example, using knowntypeattribute attribute or adding them list of known types passed datacontractserializer. 

here's wsdl service. i'm not strong in wcf, i'm hoping guidance. thanks!

<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://tempuri.org/" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/xmlschema" name="clientwcfbusinessfacadeservice" targetnamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">   <wsp:policy wsu:id="netnamedpipebinding_iwcfbusinessfacade_policy">     <wsp:exactlyone>       <wsp:all>         <msb:binaryencoding xmlns:msb="http://schemas.microsoft.com/ws/06/2004/mspolicy/netbinary1">         </msb:binaryencoding>         <wsaw:usingaddressing>         </wsaw:usingaddressing>       </wsp:all>     </wsp:exactlyone>   </wsp:policy>   <wsp:policy wsu:id="nettcpbinding_iwcfbusinessfacade_policy">     <wsp:exactlyone>       <wsp:all>         <msb:binaryencoding xmlns:msb="http://schemas.microsoft.com/ws/06/2004/mspolicy/netbinary1">         </msb:binaryencoding>         <wsaw:usingaddressing>         </wsaw:usingaddressing>       </wsp:all>     </wsp:exactlyone>   </wsp:policy>   <wsdl:types>     <xsd:schema targetnamespace="http://tempuri.org/imports">       <xsd:import namespace="http://tempuri.org/" />       <xsd:import namespace="http://schemas.datacontract.org/2004/07/life.common.servicecommon" />       <xsd:import namespace="http://schemas.microsoft.com/2003/10/serialization/" />     </xsd:schema>   </wsdl:types>   <wsdl:message name="iwcfbusinessfacade_invokeservice_inputmessage">     <wsdl:part name="parameters" element="tns:invokeservice" />   </wsdl:message>   <wsdl:message name="iwcfbusinessfacade_invokeservice_outputmessage">     <wsdl:part name="parameters" element="tns:invokeserviceresponse" />   </wsdl:message>   <wsdl:message name="iwcfbusinessfacade_invokeservice_servicefaultfault_faultmessage">     <wsdl:part xmlns:q1="http://schemas.datacontract.org/2004/07/life.common.servicecommon" name="detail" element="q1:servicefault" />   </wsdl:message>   <wsdl:porttype name="iwcfbusinessfacade">     <wsdl:operation name="invokeservice">       <wsdl:input wsaw:action="http://tempuri.org/iwcfbusinessfacade/invokeservice" message="tns:iwcfbusinessfacade_invokeservice_inputmessage" />       <wsdl:output wsaw:action="http://tempuri.org/iwcfbusinessfacade/invokeserviceresponse" message="tns:iwcfbusinessfacade_invokeservice_outputmessage" />       <wsdl:fault wsaw:action="http://tempuri.org/iwcfbusinessfacade/invokeserviceservicefaultfault" name="servicefaultfault" message="tns:iwcfbusinessfacade_invokeservice_servicefaultfault_faultmessage" />     </wsdl:operation>   </wsdl:porttype>   <wsdl:binding name="netnamedpipebinding_iwcfbusinessfacade" type="tns:iwcfbusinessfacade">     <wsp:policyreference uri="#netnamedpipebinding_iwcfbusinessfacade_policy">     </wsp:policyreference>     <soap12:binding transport="http://schemas.microsoft.com/soap/named-pipe" />     <wsdl:operation name="invokeservice">       <soap12:operation soapaction="http://tempuri.org/iwcfbusinessfacade/invokeservice" style="document" />       <wsdl:input>         <soap12:body use="literal" />       </wsdl:input>       <wsdl:output>         <soap12:body use="literal" />       </wsdl:output>       <wsdl:fault name="servicefaultfault">         <soap12:fault use="literal" name="servicefaultfault" namespace="" />       </wsdl:fault>     </wsdl:operation>   </wsdl:binding>   <wsdl:binding name="nettcpbinding_iwcfbusinessfacade" type="tns:iwcfbusinessfacade">     <wsp:policyreference uri="#nettcpbinding_iwcfbusinessfacade_policy">     </wsp:policyreference>     <soap12:binding transport="http://schemas.microsoft.com/soap/tcp" />     <wsdl:operation name="invokeservice">       <soap12:operation soapaction="http://tempuri.org/iwcfbusinessfacade/invokeservice" style="document" />       <wsdl:input>         <soap12:body use="literal" />       </wsdl:input>       <wsdl:output>         <soap12:body use="literal" />       </wsdl:output>       <wsdl:fault name="servicefaultfault">         <soap12:fault use="literal" name="servicefaultfault" namespace="" />         <soap12:fault use="literal" name="servicefaultfault" namespace="" />       </wsdl:fault>     </wsdl:operation>   </wsdl:binding>   <wsdl:service name="clientwcfbusinessfacadeservice">     <wsdl:port name="netnamedpipebinding_iwcfbusinessfacade" binding="tns:netnamedpipebinding_iwcfbusinessfacade">       <soap12:address location="net.pipe://localhost/wcfbusinessfacadeservice" />       <wsa10:endpointreference>         <wsa10:address>net.pipe://localhost/wcfbusinessfacadeservice</wsa10:address>       </wsa10:endpointreference>     </wsdl:port>     <wsdl:port name="nettcpbinding_iwcfbusinessfacade" binding="tns:nettcpbinding_iwcfbusinessfacade">       <soap12:address location="net.tcp://localhost:8086/wcfbusinessfacadeservice" />       <wsa10:endpointreference>         <wsa10:address>net.tcp://localhost:8086/wcfbusinessfacadeservice</wsa10:address>       </wsa10:endpointreference>     </wsdl:port>     <wsdl:port name="nettcpbinding_iwcfbusinessfacade1" binding="tns:nettcpbinding_iwcfbusinessfacade">       <soap12:address location="net.tcp://localhost:10000/wcfbusinessfacadeservice" />       <wsa10:endpointreference>         <wsa10:address>net.tcp://localhost:10000/wcfbusinessfacadeservice</wsa10:address>       </wsa10:endpointreference>     </wsdl:port>   </wsdl:service> </wsdl:definitions> 

for input message of invokeservice method, need pass object defined in tns:invokeservice. type in namespace http://tempuri.org/imports, not explicitly exposed in wsdl; coming namespace. may ask vendor schema xsd or assembly wsdl expecting import types below since no absolute or relative schemalocation attribute included

<xsd:import namespace="http://tempuri.org/" /> <xsd:import namespace="http://schemas.datacontract.org/2004/07/life.common.servicecommon" /> 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -