Hi Together,
I tried to build a webservice proxy using a wsdl, generated in the
sun/java world. I used the .Net 2003 Version, choosing there VC++. The
steps I did:
1. Visual C++ Projekte / "Konsoleanwendu ng (.Net)"
2. Projekt / Webverweis hinzufügen / lokal
I chose the wsdl, which were generated before within a WSAD environment
(style: RPC encoded). For me the wsdl looks like ok:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitio ns targetNamespace ="http://prj.abc.de"
xmlns:apachesoa p="http://xml.apache.org/xml-soap"
xmlns:impl="htt p://prj.abc.de" xmlns:intf="htt p://prj.abc.de"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:wsdlsoap= "http://schemas.xmlsoap .org/wsdl/soap/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema elementFormDefa ult='qualified'
targetNamespace ="http://prj.abc.de"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:apachesoa p="http://xml.apache.org/xml-soap"
xmlns:impl="htt p://prj.abc.de" xmlns:intf="htt p://prj.abc.de"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
<import namespace="http ://schemas.xmlsoap .org/soap/encoding/"/>
<element name="isAliveRe turn" type="xsd:boole an"/>
<element name="version" nillable="true" type="xsd:strin g"/>
<element name="xmlData" nillable="true" type="xsd:strin g"/>
</schema>
</wsdl:types>
<wsdl:message name="isAliveRe sponse">
<wsdl:part name="isAliveRe turn" type="xsd:boole an"/>
</wsdl:message>
<wsdl:message name="isAliveRe quest">
</wsdl:message>
<wsdl:portTyp e name="ReiKoUplo adWS">
<wsdl:operati on name="isAlive">
<wsdl:input message="impl:i sAliveRequest"
name="isAliveRe quest"/>
<wsdl:output message="impl:i sAliveResponse"
name="isAliveRe sponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="UploadRei KoWSSoapBinding "
type="impl:ReiK oUploadWS">
<wsdlsoap:bindi ng style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="isAlive">
<wsdlsoap:opera tion soapAction=""/>
<wsdl:input name="isAliveRe quest">
<wsdlsoap:bod y
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://prj.abc.de" use="encoded"/>
</wsdl:input>
<wsdl:output name="isAliveRe sponse">
<wsdlsoap:bod y
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"
namespace="http ://prj.abc.de" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ReiKoUplo adWSService">
<wsdl:port binding="impl:U ploadReiKoWSSoa pBinding"
name="UploadRei KoWS">
<wsdlsoap:addre ss
location="https ://prj/services/UploadReiKoWS"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>
Instantiating now a the web service proxy, I get the following Linker
Error:
stdafx.obj : warning LNK4227: Metadatenoperat ions-Warnung (00131189):
Doppelte Methoden mit nicht konsistenten Parameterinform ationen
Methoden: isAlive; Typ: WebReference.Re iKoUploadWSServ ice):
(0x08000002).
stdafx.obj : error LNK2022: Fehler bei der Metadatenoperat ion (80131195)
: Die benutzerdefinie rten Attribute sind nicht konsistent: (0x0c000005).
LINK : fatal error LNK1255: Fehler bei der Verknüpfung aufgrund von
Metadatenfehler n
What's wrong with the wsdl, or is there any other error? It must be
possible to combine the Microsoft and the sun world.
Thanks in advance for your help,
Manfred
Manfred, Munich
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com