By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

Generating Client proxy with WSDL - MIME tag

P: n/a
hello,

I have to communicate with a web Service for which I received the WSDL below.
When trying to generate the client proxy, it gives me the error (see below).

After investigation, I have seen that the error is related to the ouput
parameter.
To my understanding this could be related to the MIME tag. However, I'm by
far not a WSDL expert.

Can anyone help Me?
Thanks,
José

Error: Unable to import binding 'IGrayImageServicebinding' from namespace
'http://tempuri.org/'.
- The operation 'GetGreyImage' in porttype 'IGrayImageService' from
namespace 'http://tempuri.org/
' had the following syntax error: The operation has no matching binding.
Check if the operation, in
put and output names in the Binding section match with the corresponding
names in the PortType secti
on.

<?xml version="1.0" encoding="utf-8" ?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
name="IGrayImageServiceservice"
targetNamespace="http://tempuri.org/"
xmlns:tns="http://tempuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
<message name="GetGreyImage0Request">
<part name="DateStamp" type="xs:string" />
<part name="OcId" type="xs:int" />
<part name="LeserId" type="xs:int" />
<part name="UowId" type="xs:int" />
<part name="DocId" type="xs:int" />
</message>
<message name="GetGreyImage0Response">
<part name="return" type="xs:base64Binary" />
</message>
<portType name="IGrayImageService">
<operation name="GetGreyImage">
<input message="tns:GetGreyImage0Request" />
<output message="tns:GetGreyImage0Response" />
</operation>
</portType>
<binding name="IGrayImageServicebinding" type="tns:IGrayImageService">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="GetGreyImage">
<soap:operation
soapAction="urn:GrayImageServiceIntf-IGrayImageService#GetGreyImage"
style="rpc" />
<input message="tns:GetGreyImage0Request">
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:GrayImageServiceIntf-IGrayImageService" />
</input>
<output message="tns:GetGreyImage0Response"
name="GetGreyImage0Response">
<mime:multipartRelated>
<mime:part>
<soap:body use="encoded"

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

namespace="urn:GrayImageServiceIntf-IGrayImageService" />
</mime:part>
<mime:part>
<mime:content part="return" type="application/binary" />
</mime:part>
</mime:multipartRelated>
</output>
</operation>
</binding>
<service name="IGrayImageServiceservice">
<port name="IGrayImageServicePort"
binding="tns:IGrayImageServicebinding">
<soap:address
location="http://c00c4w:7021/GrayImageService/GrayImageService.exe/soap/IGrayImageService" />
</port>
</service>
</definitions>

Feb 10 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.