F
ffhansix
Hi,
I am having problems with generating a c# proxy class from a IBM
websphere WSDL file, when running the wsdl.exe to create the c# proxy
file command i recieve an error:
Warning: one or more operations were skipped.
Warnings were encountered. Review generated source comments for more
details.
Writing file 'c:\proxyclass.cs'.
After reviewing the created proxyclass.cs i find that the following
error message:
// CODEGEN: The operation binding 'CustomerUpdate' from namespace
'http://www.mywebsite.com/webservices/wsdl/Service.wsdl' was ignored.
Missing soap:body input binding.
After many hours of searching through newsgroups i have reached the
conclusion that the following part of the WSDL file cannot be
interpered correctly:
<wsdl:input name="CustomerUpdateInput">
<mime:multipartRelated>
<mime
art>
<soap:body use="literal" part="customerupdate"/>
</mime
art>
<mime
art>
<mime:content part="customerupdatedata"
type="application/x-gzip"/>
</mime
art>
</mime:multipartRelated>
</wsdl:input>
This is apperently because .NET does not have support for MIME, but
only for DIME, as i have read in various newgroups, could be wrong (i
sure hope so
)
Does anyone know if my assumption is correct or not and have anyone had
this problem before and solved it?
Have anyone of you had this problem before and know the solution, or
could point me in the right direction or something else related to this
issue i would be very grateful.
I include the WSDL file (i have changed service specific addresses to
protect the customer im working with.) And my generated proxy class.
Copy of the WSDL file:
---------------------------------
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="Myname"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.customerwebsite.com/webservices/wsdl/webService.wsdl"
targetNamespace="http://www.customerwebsite.com/webservices/wsdl/webService.wsdl">
<wsdl:types>
<xsd:schema
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<xsd:complexType name="customerupdateType">
<xsd:all>
<xsd:element name="username"
type="xsd:string" />
<xsd:element name="password"
type="xsd:string" />
</xsd:all>
</xsd:complexType>
<xsd:complexType
name="customerupdateResponseType">
<xsd:all>
<xsd:element
name="statusmessage" type="xsd:string" />
<xsd:element name="statusdate"
type="xsd:date" />
</xsd:all>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="CustomerUpdateIn">
<wsdl
art type="tns:customerupdateType"
name="customerupdate"/>
<wsdl
art name="customerupdatedata"
type="xsd:base64Binary"/>
</wsdl:message>
<wsdl:message name="CustomerUpdateOut">
<wsdl
art type="tns:customerupdateResponseType"
name="customerupdateresponse"/>
</wsdl:message>
<wsdl:message name="CustomerUpdateException">
<wsdl
art type="xsd:string" name="errormessage"/>
</wsdl:message>
<wsdl
ortType name="CustomerUpdatePortType">
<wsdl
peration name="CustomerUpdate">
<wsdl:input name="CustomerUpdateInput"
message="tns:CustomerUpdateIn"/>
<wsdl
utput name="CustomerUpdateOutput"
message="tns:CustomerUpdateOut"/>
<wsdl:fault name="CustomerUpdateFault"
message="tns:CustomerUpdateException"/>
</wsdl
peration>
</wsdl
ortType>
<wsdl:binding name="CustomerUpdateBinding"
type="tns:CustomerUpdatePortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl
peration name="CustomerUpdate">
<soap
peration
soapAction="http://www.customerwebsite.com/webservices/intern/update"/>
<wsdl:input name="CustomerUpdateInput">
<mime:multipartRelated>
<mime
art>
<soap:body
use="literal" part="customerupdate"/>
</mime
art>
<mime
art>
<mime:content
part="customerupdatedata"
type="application/x-gzip"/>
</mime
art>
</mime:multipartRelated>
</wsdl:input>
<wsdl
utput name="CustomerUpdateOutput">
<soap:body use="literal"/>
</wsdl
utput>
<wsdl:fault name="CustomerUpdateFault">
<soap:fault name="CustomerUpdateFault"
use="literal"/>
</wsdl:fault>
</wsdl
peration>
</wsdl:binding>
<wsdl:service name="CustomerUpdateService">
<wsdl
ort name="CustomerUpdatePort"
binding="tns:CustomerUpdateBinding">
<soap:address
location="http://www.customerwebsite.com/webservices/customerupdate"/>
</wsdl
ort>
</wsdl:service>
</wsdl:definitions>
Copy of the C# generated proxy class:
-------------------------------------
//
// This source code was auto-generated by wsdl, Version=1.1.4322.2032.
//
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
// CODEGEN: The operation binding 'CustomerUpdate' from namespace
'http://www.customerwebsite.com/webservices/wsdl/webService.wsdl'
was
ignored. Missing soap:body input binding.
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="CustomerUpdateBinding",
Namespace="http://www.customerwebsite.com/webservices/wsdl/WebService.wsdl")]
public class CustomerUpdateService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public CustomerUpdateService() {
this.Url =
"http://www.customerwebsite.com/webservices/customerupdate";
}
}
Sincerely,
Hans Sixhöj
Systems Developer
Microsoft Certified Solution Developer
Visma Consulting AB
(e-mail address removed)
I am having problems with generating a c# proxy class from a IBM
websphere WSDL file, when running the wsdl.exe to create the c# proxy
file command i recieve an error:
Warning: one or more operations were skipped.
Warnings were encountered. Review generated source comments for more
details.
Writing file 'c:\proxyclass.cs'.
After reviewing the created proxyclass.cs i find that the following
error message:
// CODEGEN: The operation binding 'CustomerUpdate' from namespace
'http://www.mywebsite.com/webservices/wsdl/Service.wsdl' was ignored.
Missing soap:body input binding.
After many hours of searching through newsgroups i have reached the
conclusion that the following part of the WSDL file cannot be
interpered correctly:
<wsdl:input name="CustomerUpdateInput">
<mime:multipartRelated>
<mime
<soap:body use="literal" part="customerupdate"/>
</mime
<mime
<mime:content part="customerupdatedata"
type="application/x-gzip"/>
</mime
</mime:multipartRelated>
</wsdl:input>
This is apperently because .NET does not have support for MIME, but
only for DIME, as i have read in various newgroups, could be wrong (i
sure hope so
Does anyone know if my assumption is correct or not and have anyone had
this problem before and solved it?
Have anyone of you had this problem before and know the solution, or
could point me in the right direction or something else related to this
issue i would be very grateful.
I include the WSDL file (i have changed service specific addresses to
protect the customer im working with.) And my generated proxy class.
Copy of the WSDL file:
---------------------------------
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="Myname"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.customerwebsite.com/webservices/wsdl/webService.wsdl"
targetNamespace="http://www.customerwebsite.com/webservices/wsdl/webService.wsdl">
<wsdl:types>
<xsd:schema
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<xsd:complexType name="customerupdateType">
<xsd:all>
<xsd:element name="username"
type="xsd:string" />
<xsd:element name="password"
type="xsd:string" />
</xsd:all>
</xsd:complexType>
<xsd:complexType
name="customerupdateResponseType">
<xsd:all>
<xsd:element
name="statusmessage" type="xsd:string" />
<xsd:element name="statusdate"
type="xsd:date" />
</xsd:all>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="CustomerUpdateIn">
<wsdl
name="customerupdate"/>
<wsdl
type="xsd:base64Binary"/>
</wsdl:message>
<wsdl:message name="CustomerUpdateOut">
<wsdl
name="customerupdateresponse"/>
</wsdl:message>
<wsdl:message name="CustomerUpdateException">
<wsdl
</wsdl:message>
<wsdl
<wsdl
<wsdl:input name="CustomerUpdateInput"
message="tns:CustomerUpdateIn"/>
<wsdl
message="tns:CustomerUpdateOut"/>
<wsdl:fault name="CustomerUpdateFault"
message="tns:CustomerUpdateException"/>
</wsdl
</wsdl
<wsdl:binding name="CustomerUpdateBinding"
type="tns:CustomerUpdatePortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl
<soap
soapAction="http://www.customerwebsite.com/webservices/intern/update"/>
<wsdl:input name="CustomerUpdateInput">
<mime:multipartRelated>
<mime
<soap:body
use="literal" part="customerupdate"/>
</mime
<mime
<mime:content
part="customerupdatedata"
type="application/x-gzip"/>
</mime
</mime:multipartRelated>
</wsdl:input>
<wsdl
<soap:body use="literal"/>
</wsdl
<wsdl:fault name="CustomerUpdateFault">
<soap:fault name="CustomerUpdateFault"
use="literal"/>
</wsdl:fault>
</wsdl
</wsdl:binding>
<wsdl:service name="CustomerUpdateService">
<wsdl
binding="tns:CustomerUpdateBinding">
<soap:address
location="http://www.customerwebsite.com/webservices/customerupdate"/>
</wsdl
</wsdl:service>
</wsdl:definitions>
Copy of the C# generated proxy class:
-------------------------------------
//
// This source code was auto-generated by wsdl, Version=1.1.4322.2032.
//
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
// CODEGEN: The operation binding 'CustomerUpdate' from namespace
'http://www.customerwebsite.com/webservices/wsdl/webService.wsdl'
was
ignored. Missing soap:body input binding.
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="CustomerUpdateBinding",
Namespace="http://www.customerwebsite.com/webservices/wsdl/WebService.wsdl")]
public class CustomerUpdateService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public CustomerUpdateService() {
this.Url =
"http://www.customerwebsite.com/webservices/customerupdate";
}
}
Sincerely,
Hans Sixhöj
Systems Developer
Microsoft Certified Solution Developer
Visma Consulting AB
(e-mail address removed)