Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9182
↧

Re: WCF webservice with RPC/encoding

$
0
0


Hello Christian,
I ran the wsdl tool against your wsdl file and it provided the following output:

 

C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>wsdl d:\customer.wsdl

Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2706: A wsdl:binding in a DESCRIPTION MUST use the value of "literal" for the
se attribute in all soapbind:body, soapbind:fault, soapbind:header and soapbind
headerfault elements.
  -  Input element soapbind:body of operation 'keepalive' on portType 'BasicHtt
Binding_u_nvoint_ttt_iis' from namespace 'http://XYZ'.
  -  Output element soapbind:body of operation 'keepalive' on portType 'BasicHt
pBinding_u_nvoint_ttt_iis' from namespace 'http://XYZ'.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Writing file 'C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\u_nvoint_ttt_iis
cs'.

 

So I edited the following two lines and ran the tool again and it seemed to like it.  I changed use="encoding" to use="literal" per the error message:

 

<wsdl:input>

<soap:body use="literal" namespace="http://XYZ" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</wsdl:input><wsdl:output>

<soap:body use="literal" namespace="http://XYZ" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>

</wsdl:output>

 

Running wsdl tool after changes:

C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>wsdl d:\customer.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\u_nvoint_ttt_iis
cs'.

 

HTH

 

Ted Zimmerman

↧

Viewing all articles
Browse latest Browse all 9182


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>