473,703 Members | 2,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wsdl missing type definition (remoting over soap)

I have simple remoting server exposing following simple method. When I try to
add webreference to this server in another project,
it gives me following error:
Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'MyRemoteObject Binding' from namespace
'http://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull'.
Unable to import operation 'GetEmpInfo'.
The datatype
'http://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s/Brooks.EES.Fram ework.DataStruc ture%2C%20Versi on%3D1.0.1.1%2C %20Culture%3Dne utral%2C%20Publ icKeyToken%3Dbb f6413da47c0685: EmpDetail' is missing.
After some tests, following are my findings.
1. Currently EmpDetail class is defined in different namespace and different
DLL from the remoting server.
2. In this setup, ?wsdl generates wsdl which is missing the type definition
of the EmpDetails, which is resulting in above error.

3. If I remove get/set methods from the EmpDetail class, ?wsdl generates
correct wsdl with EmpDetalis type definition in the wsdl.
4. If I define EmpDetails class in the same namesapce and same dll (no
change in the EmpDetails definition), ?wsdl generates correct wsdl with the
type definition of EmpDetail calss.

Im I missing something? or How can I instruct ?wsdl to include all type
definition.

----------------------------------------------------------------------------
Example Code: RemoteServer
----------------------------------------------------------------------------
using Brooks.EES.Fram ework.DataAcces s;
namespace RemoteServer
{
class MyRemoteObject : System.MarshalB yRefObject
{
public EmpDetail GetEmpInfo()
{
return new EmpDetail();
}
}
}

namespace Brooks.EES.Fram ework.DataAcces s
{
[Serializable]
public class EmpDetail
{
private string _Id;
private string _description;

public string Id
{
get
{
return _Id;
}
set
{
_Id = value;
}
}

public string Description
{
get
{
return _description;
}
set
{
_description = value;
}
}
}
}

-----------------------------------------------------------------------------
Here is the wsdl snipate which is missing type definition.
-----------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="MyRemoteO bject"
targetNamespace ="http://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:tns="http ://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:suds="htt p://www.w3.org/2000/wsdl/suds"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns:ns0="http ://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns:ns1="http ://schemas.microso ft.com/clr/ns/System"
xmlns:ns3="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s/Brooks.EES.Fram ework.DataStruc ture%2C%20Versi on%3D1.0.1.1%2C %20Culture%3Dne utral%2C%20Publ icKeyToken%3Dbb f6413da47c0685"
xmlns:ns4="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture%2C%20Versi on%3D1.0.1.1%2C %20Culture%3Dne utral%2C%20Publ icKeyToken%3Dbb f6413da47c0685"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/">

<message name="MyRemoteO bject.GetEmpInf oInput">
</message>
<message name="MyRemoteO bject.GetEmpInf oOutput">
<part name="return" type="ns3:EmpDe tail"/>
</message>

<portType name="MyRemoteO bjectPortType">
<operation name="GetEmpInf o">
<input name="GetEmpInf oRequest"
message="tns:My RemoteObject.Ge tEmpInfoInput"/>
<output name="GetEmpInf oResponse"
message="tns:My RemoteObject.Ge tEmpInfoOutput"/>
</operation>
</portType>

<binding name="MyRemoteO bjectBinding" type="tns:MyRem oteObjectPortTy pe">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<suds:class type="ns0:MyRem oteObject" rootType="Marsh alByRefObject">
</suds:class>
<operation name="GetEmpInf o">
<soap:operati on
soapAction="htt p://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer#Ge tEmpInfo"/>
<suds:method attributes="pub lic"/>
<input name="GetEmpInf oRequest">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer"/>
</input>
<output name="GetEmpInf oResponse">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer"/>
</output>
</operation>
</binding>

<message name="EmpDetail .get_IdInput">
</message>
<message name="EmpDetail .get_IdOutput">
<part name="return" type="xsd:strin g"/>
</message>

<message name="EmpDetail .set_IdInput">
<part name="value" type="xsd:strin g"/>
</message>
<message name="EmpDetail .set_IdOutput">
</message>

<message name="EmpDetail .get_Descriptio nInput">
</message>
<message name="EmpDetail .get_Descriptio nOutput">
<part name="return" type="xsd:strin g"/>
</message>

<message name="EmpDetail .set_Descriptio nInput">
<part name="value" type="xsd:strin g"/>
</message>
<message name="EmpDetail .set_Descriptio nOutput">
</message>

<portType name="EmpDetail PortType">
<operation name="get_Id">
<input name="get_IdReq uest" message="tns:Em pDetail.get_IdI nput"/>
<output name="get_IdRes ponse"
message="tns:Em pDetail.get_IdO utput"/>
</operation>
<operation name="set_Id" parameterOrder= "value">
<input name="set_IdReq uest" message="tns:Em pDetail.set_IdI nput"/>
<output name="set_IdRes ponse"
message="tns:Em pDetail.set_IdO utput"/>
</operation>
<operation name="get_Descr iption">
<input name="get_Descr iptionRequest"
message="tns:Em pDetail.get_Des criptionInput"/>
<output name="get_Descr iptionResponse"
message="tns:Em pDetail.get_Des criptionOutput"/>
</operation>
<operation name="set_Descr iption" parameterOrder= "value">
<input name="set_Descr iptionRequest"
message="tns:Em pDetail.set_Des criptionInput"/>
<output name="set_Descr iptionResponse"
message="tns:Em pDetail.set_Des criptionOutput"/>
</operation>
</portType>

<binding name="EmpDetail Binding" type="tns:EmpDe tailPortType">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<suds:class type="ns3:EmpDe tail">
</suds:class>
<operation name="get_Id">
<soap:operati on
soapAction="htt p://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture#get_Id"/>
<suds:method attributes="pub lic"/>
<input name="get_IdReq uest">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</input>
<output name="get_IdRes ponse">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</output>
</operation>
<operation name="set_Id">
<soap:operati on
soapAction="htt p://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture#set_Id"/>
<suds:method attributes="pub lic"/>
<input name="set_IdReq uest">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</input>
<output name="set_IdRes ponse">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</output>
</operation>
<operation name="get_Descr iption">
<soap:operati on
soapAction="htt p://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture#get_Descri ption"/>
<suds:method attributes="pub lic"/>
<input name="get_Descr iptionRequest">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</input>
<output name="get_Descr iptionResponse" >
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</output>
</operation>
<operation name="set_Descr iption">
<soap:operati on
soapAction="htt p://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture#set_Descri ption"/>
<suds:method attributes="pub lic"/>
<input name="set_Descr iptionRequest">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</input>
<output name="set_Descr iptionResponse" >
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s.EmpDetail/Brooks.EES.Fram ework.DataStruc ture"/>
</output>
</operation>
</binding>

<service name="MyRemoteO bjectService">
<port name="MyRemoteO bjectPort" binding="tns:My RemoteObjectBin ding">
<soap:address location="http://localhost:8086/x.MyTest"/>
</port>
</service>
</definitions>



-----------------------------------------------------------------
Here is the correct wsdl with type information:
------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="MyRemoteO bject"
targetNamespace ="http://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:tns="http ://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:suds="htt p://www.w3.org/2000/wsdl/suds"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:ns2="http ://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns:ns0="http ://schemas.microso ft.com/clr/nsassem/RemoteServer/RemoteServer%2C %20Version%3D1. 0.0.0%2C%20Cult ure%3Dneutral%2 C%20PublicKeyTo ken%3Dnull"
xmlns:ns1="http ://schemas.microso ft.com/clr/ns/System"
xmlns:ns3="http ://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s/Brooks.EES.Fram ework.DataStruc ture%2C%20Versi on%3D1.0.1.1%2C %20Culture%3Dne utral%2C%20Publ icKeyToken%3Dbb f6413da47c0685"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/">
<types>
<schema
targetNamespace ="http://schemas.microso ft.com/clr/nsassem/Brooks.EES.Fram ework.DataAcces s/Brooks.EES.Fram ework.DataStruc ture%2C%20Versi on%3D1.0.1.1%2C %20Culture%3Dne utral%2C%20Publ icKeyToken%3Dbb f6413da47c0685"
xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefa ult="unqualifie d"
attributeFormDe fault="unqualif ied">
<element name="EmpDetail " type="ns3:EmpDe tail"/>
<complexType name="EmpDetail ">
<all>
<element name="_Id" type="xsd:strin g"/>
<element name="_descript ion" type="xsd:strin g"/>
</all>
</complexType>
</schema>
</types>

<message name="MyRemoteO bject.GetEmpInf oInput">
</message>
<message name="MyRemoteO bject.GetEmpInf oOutput">
<part name="return" type="ns3:EmpDe tail"/>
</message>

<portType name="MyRemoteO bjectPortType">
<operation name="GetEmpInf o">
<input name="GetEmpInf oRequest"
message="tns:My RemoteObject.Ge tEmpInfoInput"/>
<output name="GetEmpInf oResponse"
message="tns:My RemoteObject.Ge tEmpInfoOutput"/>
</operation>
</portType>

<binding name="MyRemoteO bjectBinding" type="tns:MyRem oteObjectPortTy pe">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<suds:class type="ns0:MyRem oteObject" rootType="Marsh alByRefObject">
</suds:class>
<operation name="GetEmpInf o">
<soap:operati on
soapAction="htt p://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer#Ge tEmpInfo"/>
<suds:method attributes="pub lic"/>
<input name="GetEmpInf oRequest">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer"/>
</input>
<output name="GetEmpInf oResponse">
<soap:body use="encoded"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://schemas.microso ft.com/clr/nsassem/RemoteServer.My RemoteObject/RemoteServer"/>
</output>
</operation>
</binding>

<portType name="EmpDetail PortType">
</portType>

<binding name="EmpDetail Binding" type="tns:EmpDe tailPortType">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<suds:class type="ns3:EmpDe tail">
</suds:class>
</binding>

<service name="MyRemoteO bjectService">
<port name="MyRemoteO bjectPort" binding="tns:My RemoteObjectBin ding">
<soap:address location="http://localhost:8086/x.MyTest"/>
</port>
</service>
</definitions>
Feb 24 '06 #1
0 4837

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

Similar topics

2
6898
by: joewhitehair | last post by:
Using the XSD.exe tool, I created a number of classes from my XSD file. When I generate the WSDL for my web service, the schema does not have the proper Occurance constraints for the attributes. In this example, the MessageID element should always occur (minOccur=1, maxOccur=1), but the WSDL generates minOccur=0. I can't pinpoint why this is happening and I can't find a may to force this in the code either. Anyone have any insight? This...
1
9900
by: ffhansix | last post by:
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.
1
1530
by: Carsten Posingies | last post by:
Hi NG, I've got this annoying problem: On the server's side there's an Apache w/ PHP running. I wrote a kind of "bare bones" SOAP implementation, though meeting the SOAP specs. Afaics this part isn't causing the problem. To be able to use wsdl.exe, I've tried to describe my web service wie a WSDL file. I will post this file as soon as an expert is willing to care
1
6399
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i reference this wsdl in .NET it seems to do it fine, yet there are no objects to reference except RateQuoteBeanService. In the WSDL it looks like there should be getRateQuote, and QUOTEREQUEST, etc.
2
4196
by: pshvarts | last post by:
(I'm new in SOAP) I get some wsdl file (from apache service ). I tried creating SOAP client with .NET - trying to add Web Reference and get error like: "Custom tool error: Unable to import WebService/Schema. Unable to import binding..." I thought may be wsdl file is not good enough (it was created with qsoap toolkit), so I paste-copy sample from http://www.w3.org/TR/2001/NOTE-wsdl-20010315#_wsdl (will paste below) and receive same error...
0
1982
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool error: Unable to import WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace...
0
1710
by: Andreas | last post by:
Hi, Im trying to consume a webservice described by the WSDL below, however When i try to add the WSDL it does not work, tried to run it through WSDL.EXE It validates in XMLSpy, but WSDL.exe pukes on it, as does when i try to use it in a Vs.Net project... Any ideas how to go forward with this? Output from WSDL.EXE; Error: Unable to import binding
1
3524
by: E11 | last post by:
Hi all, I am composing a SOAP request message from a WSDL definition, and it seems that my concept of namespaces is wrong. The "types" section of the WSDL definition is as follows: <types> <s:schema
13
3430
by: ScottM | last post by:
I have run into a problem generating the class file via the WSDL utility. I have a WSDL file that was generated by XMLSpy and is able to be read by the Java code utility, but I get the following error from the WSDL utility. Error: Unable to import binding 'REMSOAPHttpsBinding' from namespace 'http://www.fnfis.com/services/Services-Common/REM/20040109/v1.0'. - The operation 'REMCorporationBPOOrder' on portType 'REMInterface' from...
0
9244
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...
0
9111
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9004
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
8961
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...
1
6585
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5922
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4421
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...
1
3114
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
2
2439
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.