473,715 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generate c# proxy class from IBM websphere (AXIS) webservice WSDL.

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.c om/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="CustomerU pdateInput">
<mime:multipart Related>
<mime:part>
<soap:body use="literal" part="customeru pdate"/>
</mime:part>
<mime:part>
<mime:content part="customeru pdatedata"
type="applicati on/x-gzip"/>
</mime:part>
</mime:multipartR elated>
</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:definitio ns name="Myname"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
xmlns:soap-enc="http://schemas.xmlsoap .org/soap/encoding/"

xmlns:tns="http ://www.customerweb site.com/webservices/wsdl/webService.wsdl "

targetNamespace ="http://www.customerweb site.com/webservices/wsdl/webService.wsdl ">

<wsdl:types>
<xsd:schema xmlns:xsd="http ://www.w3.org/1999/XMLSchema">
<xsd:complexTyp e name="customeru pdateType">
<xsd:all>
<xsd:element name="username" type="xsd:strin g" />
<xsd:element name="password" type="xsd:strin g" />
</xsd:all>
</xsd:complexType >
<xsd:complexTyp e name="customeru pdateResponseTy pe">
<xsd:all>
<xsd:element name="statusmes sage" type="xsd:strin g" />
<xsd:element name="statusdat e" type="xsd:date" />
</xsd:all>
</xsd:complexType >
</xsd:schema>
</wsdl:types>

<wsdl:message name="CustomerU pdateIn">
<wsdl:part type="tns:custo merupdateType" name="customeru pdate"/>
<wsdl:part name="customeru pdatedata" type="xsd:base6 4Binary"/>
</wsdl:message>

<wsdl:message name="CustomerU pdateOut">
<wsdl:part type="tns:custo merupdateRespon seType"
name="customeru pdateresponse"/>
</wsdl:message>

<wsdl:message name="CustomerU pdateException" >
<wsdl:part type="xsd:strin g" name="errormess age"/>
</wsdl:message>

<wsdl:portTyp e name="CustomerU pdatePortType">
<wsdl:operati on name="CustomerU pdate">
<wsdl:input name="CustomerU pdateInput"
message="tns:Cu stomerUpdateIn"/>
<wsdl:output name="CustomerU pdateOutput"
message="tns:Cu stomerUpdateOut "/>
<wsdl:fault name="CustomerU pdateFault"
message="tns:Cu stomerUpdateExc eption"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="CustomerU pdateBinding"
type="tns:Custo merUpdatePortTy pe">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="CustomerU pdate">
<soap:operati on
soapAction="htt p://www.customerweb site.com/webservices/intern/update"/>
<wsdl:input name="CustomerU pdateInput">
<mime:multipart Related>
<mime:part>
<soap:body use="literal" part="customeru pdate"/>
</mime:part>
<mime:part>
<mime:content part="customeru pdatedata"
type="applicati on/x-gzip"/>
</mime:part>
</mime:multipartR elated>
</wsdl:input>
<wsdl:output name="CustomerU pdateOutput">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="CustomerU pdateFault">
<soap:fault name="CustomerU pdateFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="CustomerU pdateService">
<wsdl:port name="CustomerU pdatePort"
binding="tns:Cu stomerUpdateBin ding">
<soap:address
location="http://www.customerweb site.com/webservices/customerupdate"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>

Copy of the C# generated proxy class:
-------------------------------------
//
// This source code was auto-generated by wsdl, Version=1.1.432 2.2032.
//
using System.Diagnost ics;
using System.Xml.Seri alization;
using System;
using System.Web.Serv ices.Protocols;
using System.Componen tModel;
using System.Web.Serv ices;
/// <remarks/>
// CODEGEN: The operation binding 'CustomerUpdate ' from namespace
'http://www.customerweb site.com/webservices/wsdl/webService.wsdl ' was
ignored. Missing soap:body input binding.
[System.Diagnost ics.DebuggerSte pThroughAttribu te()]
[System.Componen tModel.Designer CategoryAttribu te("code")]
[System.Web.Serv ices.WebService BindingAttribut e(Name="Custome rUpdateBinding" ,
Namespace="http ://www.customerweb site.com/webservices/wsdl/WebService.wsdl ")]
public class CustomerUpdateS ervice :
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol {

/// <remarks/>
public CustomerUpdateS ervice() {
this.Url =
"http://www.customerweb site.com/webservices/customerupdate" ;
}
}

Sincerely,
Hans Sixhöj
Systems Developer
Microsoft Certified Solution Developer
Visma Consulting AB
ha*********@vis ma.se

Nov 12 '05 #1
1 9902
It's true, as you read, .NET does not do SwA or MIME.

-Dino
<ff******@hotma il.com> wrote in message
news:11******** *************@l 41g2000cwc.goog legroups.com...
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.c om/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="CustomerU pdateInput">
<mime:multipart Related>
<mime:part>
<soap:body use="literal" part="customeru pdate"/>
</mime:part>
<mime:part>
<mime:content part="customeru pdatedata"
type="applicati on/x-gzip"/>
</mime:part>
</mime:multipartR elated>
</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:definitio ns name="Myname"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
xmlns:soap-enc="http://schemas.xmlsoap .org/soap/encoding/"

xmlns:tns="http ://www.customerweb site.com/webservices/wsdl/webService.wsdl "

targetNamespace ="http://www.customerweb site.com/webservices/wsdl/webService.wsdl ">

<wsdl:types>
<xsd:schema xmlns:xsd="http ://www.w3.org/1999/XMLSchema">
<xsd:complexTyp e name="customeru pdateType">
<xsd:all>
<xsd:element name="username" type="xsd:strin g" />
<xsd:element name="password" type="xsd:strin g" />
</xsd:all>
</xsd:complexType >
<xsd:complexTyp e name="customeru pdateResponseTy pe">
<xsd:all>
<xsd:element name="statusmes sage" type="xsd:strin g" />
<xsd:element name="statusdat e" type="xsd:date" />
</xsd:all>
</xsd:complexType >
</xsd:schema>
</wsdl:types>

<wsdl:message name="CustomerU pdateIn">
<wsdl:part type="tns:custo merupdateType" name="customeru pdate"/>
<wsdl:part name="customeru pdatedata" type="xsd:base6 4Binary"/>
</wsdl:message>

<wsdl:message name="CustomerU pdateOut">
<wsdl:part type="tns:custo merupdateRespon seType"
name="customeru pdateresponse"/>
</wsdl:message>

<wsdl:message name="CustomerU pdateException" >
<wsdl:part type="xsd:strin g" name="errormess age"/>
</wsdl:message>

<wsdl:portTyp e name="CustomerU pdatePortType">
<wsdl:operati on name="CustomerU pdate">
<wsdl:input name="CustomerU pdateInput"
message="tns:Cu stomerUpdateIn"/>
<wsdl:output name="CustomerU pdateOutput"
message="tns:Cu stomerUpdateOut "/>
<wsdl:fault name="CustomerU pdateFault"
message="tns:Cu stomerUpdateExc eption"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="CustomerU pdateBinding"
type="tns:Custo merUpdatePortTy pe">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="CustomerU pdate">
<soap:operati on
soapAction="htt p://www.customerweb site.com/webservices/intern/update"/>
<wsdl:input name="CustomerU pdateInput">
<mime:multipart Related>
<mime:part>
<soap:body use="literal" part="customeru pdate"/>
</mime:part>
<mime:part>
<mime:content part="customeru pdatedata"
type="applicati on/x-gzip"/>
</mime:part>
</mime:multipartR elated>
</wsdl:input>
<wsdl:output name="CustomerU pdateOutput">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="CustomerU pdateFault">
<soap:fault name="CustomerU pdateFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="CustomerU pdateService">
<wsdl:port name="CustomerU pdatePort"
binding="tns:Cu stomerUpdateBin ding">
<soap:address
location="http://www.customerweb site.com/webservices/customerupdate"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>

Copy of the C# generated proxy class:
-------------------------------------
//
// This source code was auto-generated by wsdl, Version=1.1.432 2.2032.
//
using System.Diagnost ics;
using System.Xml.Seri alization;
using System;
using System.Web.Serv ices.Protocols;
using System.Componen tModel;
using System.Web.Serv ices;
/// <remarks/>
// CODEGEN: The operation binding 'CustomerUpdate ' from namespace
'http://www.customerweb site.com/webservices/wsdl/webService.wsdl ' was
ignored. Missing soap:body input binding.
[System.Diagnost ics.DebuggerSte pThroughAttribu te()]
[System.Componen tModel.Designer CategoryAttribu te("code")]
[System.Web.Serv ices.WebService BindingAttribut e(Name="Custome rUpdateBinding" ,
Namespace="http ://www.customerweb site.com/webservices/wsdl/WebService.wsdl ")]
public class CustomerUpdateS ervice :
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol {

/// <remarks/>
public CustomerUpdateS ervice() {
this.Url =
"http://www.customerweb site.com/webservices/customerupdate" ;
}
}

Sincerely,
Hans Sixhöj
Systems Developer
Microsoft Certified Solution Developer
Visma Consulting AB
ha*********@vis ma.se
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2350
by: Ohad Young | last post by:
Hi, I have a webservice method that returns an instance of a custom class I created (e.g., bank account). The class definition in the webservice contains properties, overrides Object.ToString method and etc. However, the proxy created for the webservice contains a definition for this class without the code I wrote. Instead it contains only public fields. I understand the reason, interoperability with none .net clients, but is there...
1
3368
by: Dan A | last post by:
Why can't .NET generate stubs to correspond to the exceptions that are thrown by a webservice? The exceptions that are thrown by an API are just as importantant as the return objects, etc. Apache Axis automatically generates client stubs for exceptions that are thrown by a server - and they these exceptions are automatically thrown whenever it occurs on the server, just like it should. In .NET world - the best it seems to be able to...
0
1543
by: Peter Theill | last post by:
I have these two web services: namespace WebService1 { public class Service1 : System.Web.Services.WebService { public Service1() { } public string HelloWorld() {
9
3217
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. What it does is to call a webservice with two parameters, one being a integer, the other one being a "String" which contains XML (not the best practice, however that is the target interface and we cannot change that).
1
2861
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
0
5112
by: Richard Gregory | last post by:
Hi, I have the wsdl below, for an Axis web service, and when I select Add Web Refernce in Visual Studio the proxy is missing a class representing the returnedElementsType (see reference.cs below the wsdl). This complex type is a collection of another complex type(elementType), and the Reference.cs has an array of these rather than the single returnedElementsType. If If I want to be able to obtain these elements from the SOAP response I...
5
12714
by: ayaz.usman | last post by:
Hi, I've built a web services proxy server, in C# using wsdl.exe, by importing wsdl. Howeever, when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does not match the wsdl I fed into wsdl.exe. Why is this? Is there something I can do to make the input and output wsdl match?
0
1101
by: joymac | last post by:
How to create a proxy class for a webservice? I have a simple webservice ("Hello World") and I am trying to create a proxy class for this webservice using below command - wsdl /l:CS /protocol:HttpPost http://localhost/SampleWebService/ Service.asmx?wsdl On execution of this command, I get the warning messages saying "no classes were generated".
4
4452
by: newtonwong | last post by:
I have a web reference WSDL, but it doesn't really create an XSD. I'm trying to generate datasets from the WSDL file but not sure how to do so. I successfully created the proxy class, but the WebServices all return/ send domain typed data, so I am seeing if I can turn these "classes"/ WSDL into Typed DataSets. Anyone have ideas on where to start?
0
8821
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8718
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9340
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9103
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2118
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.