473,652 Members | 3,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Link Error (error LNK2022) building a WebService Proxy

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
Feb 19 '06 #1
1 1789
Hi,

It's a non interoperabilit y problem. I solved the problem myself by
finding an acceptable workaround. After changing the return value types
from boolean to string, no more linking errors occured. I hope I can
help with that hint other guys having similar problems.

With regards,
Manfred

Manfred, Munich

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Feb 23 '06 #2

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

Similar topics

10
9508
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the errors below. Everything compiles fine and all the types are defined, it appears that the template type itga::order_collection::iterator is causing the trouble. Gary.
0
2641
by: Stu | last post by:
When linking a CLR project, I get these six linker messages: T_Calc error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000042). T_Calc error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000046). T_Calc error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c00004c). T_Calc error LNK2022: metadata operation...
0
1149
by: AntonB | last post by:
I am using Visual Studio 2005 Beta1 and get the following errors when building a .NET class library (called TryDLLPr in the example below). Any advice on what's wrong will be greatly appreciated. The errors given are: TryDLLPr.obj : error LNK2022: metadata operation failed (801311D6) : Differing number of methods in duplicated types (TryInclude.AVect<int>): (0x02000005). LINK : fatal error LNK1255: link failed because of metadata errors...
4
3916
by: Mike Woinoski | last post by:
(I'm new to VS, so please forgive me if this is a faq.) I'm writing some Java web services and need to test them with C++ clients. I can use either a Windows Form application or an MFC application. I used VS.NET 2003 to create a C# client that successfully processes SOAP messages to and from the Java service. However, I'm having problems with the C++ client. I created a new solution and a new project with File > New > Visual C++ Projects...
4
1689
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty) ------------- namespace Elsam.Turabs.ClassLibraries.TurabsLogExeption{
3
4208
by: Eric van der Niet | last post by:
I have thuis webservice. Used to get account information out of microsoft crm. But is reply's an error! can someone see whats the error in this code???? Help! using System; using System.Collections; using System.ComponentModel;
5
12708
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?
1
2128
by: Ankur Goenka | last post by:
Hi, I am trying to include two proxy classes (from two different web services say Namespace.Service1 and Namespace.Service2) in a project (C# Class lib). These webservice internally use (as input or return) custom classes' objects e.g. userinfo, customerinfo etc. When i generate the proxy classes for these services using wsdl, the definition for custom classes' is also generated in the proxy classes.
3
4416
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
0
8367
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
8811
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
8703
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
8467
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
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5619
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
4145
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
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1914
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.