473,769 Members | 7,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to create Axis webservice instance in .Net client

Hi,
I have a webservice(eg.I StringServicePo rt) running on Axis, iam able to
create a java client for the same and invoke the service and obtain the
result.
I wanted to create a .Net client(C#) for the same..For that I did the
following thing
I added a web reference for the service thru "Add Web Reference", It got
added successfully,
But iam unable to find the web reference in my c# class. Because of that
iam not able to invoke the service ..
Iam trying to do the below mentioned task..

NetClient.IStri ngServicePort s1 = new NetClient.IStri ngServicePort() ;
//Where NetClient is the web reference and NetClient.Emplo yee is the service.
But what happens in NetClient is not visibile in the C# class.
Foll. is the wsdl file for the service running in Axis.

<definitions xmlns:tns="urn: StringService2"
xmlns=" <http://schemas.xmlsoap .org/wsdl/>"
xmlns:ns2="urn: StringService2"
xmlns:xsd=" <http://www.w3.org/2001/XMLSchema>"
xmlns:soap=" <http://schemas.xmlsoap .org/wsdl/soap/>"
targetNamespace ="urn:StringSer vice2"
name="XMLString Service">
<types>
<schema targetNamespace ="urn:StringSer vice2" xmlns:tns="urn: StringService2"
xmlns:xsi=" <http://www.w3.org/2001/XMLSchema-instance>"
xmlns:wsdl=" <http://schemas.xmlsoap .org/wsdl/>"
xmlns=" <http://www.w3.org/2001/XMLSchema>">

<complexType name="sayXMLHel lo">
<sequence>
<element name="String_1" type="string" nillable="true"/>
</sequence>
</complexType>
<complexType name="sayXMLHel loResponse">
<sequence>
<element name="result" type="string" nillable="true"/>
</sequence>
</complexType>
<element name="sayXMLHel lo" type="tns:sayXM LHello"/>
<element name="sayXMLHel loResponse" type="tns:sayXM LHelloResponse"/>
</schema>
</types>
<message name="IStringSe rvice_sayXMLHel lo">
<part name="parameter s" element="ns2:sa yXMLHello"/>
</message>
<message name="IStringSe rvice_sayXMLHel loResponse">
<part name="parameter s" element="ns2:sa yXMLHelloRespon se"/>
</message>
<portType name="IStringSe rvice">
<operation name="sayXMLHel lo">
<input message="tns:IS tringService_sa yXMLHello"/>
<output message="tns:IS tringService_sa yXMLHelloRespon se"/>
</operation>
</portType>
<binding name="IStringSe rviceBinding" type="tns:IStri ngService">
<soap:binding style="document " transport="
http://schemas.xmlsoap .org/soap/http"/ <http://schemas.xmlsoap .org/soap/http>>
<operation name="sayXMLHel lo">
<soap:operati on/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="XMLString Service">
<port name="IStringSe rvicePort" binding="tns:IS tringServiceBin ding">
<soap:address location="
http://localhost:8080/axis/services/IStringServiceP ort">
</port>
</service>
</definitions>

Can anyone help please...thanks in advance..
Nov 23 '05 #1
0 1641

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

Similar topics

2
4457
by: Artur | last post by:
Hi Newsgroup, im currently working on programming a asp.net application consuming an Webservice hosted on Apache/Axis. I have generated WSDL and Proxy classes from VisualStudio.net. But when trying to fire up one method i get following error: System.Web.Services.Protocols.SoapHeaderException: Method 'tns:prodsearch' not implemented
3
2706
by: Jacky Zhu | last post by:
Hi all, I am having a problem trying to consume a webservice that is developed on ..Net. I can access it without any problem using a .net client, but when I use a java client (based on Axis 1.1), some methods work, some don't. The error message I got is "org.apache.axis.types.URI$MalformedURIException: No scheme found in URI..."
3
2200
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. The next step I should do in order to invoke the service is to
0
1683
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to consume them in VB .NET I get objects with nothing in them. Interestingly, if I call a webservice that returns a string, then it all works fine. I have pasted the wsdl file for review. Any suggestions would be greatly appreciated. I used the...
4
12312
by: Lucvdv | last post by:
I have to connect to a server set up by the government, where they used Apache Axis to create a webservice. The code I use to interface to the webservice is generated by wsdl.exe, based on a .wsdl file they sent me. Now a problem turns up with a date field they implemented as xsd:dateTime, even though it only contains a date.
0
2504
by: Chris Fink | last post by:
I have walked through all of the WSE 3 Hands on Labs and got everything working fine. When I create my own certificate and install it in the stores, my client application that is consuming my WSE enabled webservice receives the following error (noted at the very bottom of this post). My objective here is to create and secure a service application (webservice) using an x509 test cert that requests a client certificate; and to create a...
0
4533
by: karazy | last post by:
I have been reading all the forums and understand whats going wrong but am not sure how to fix it. I have written a basic doc/literal web service. But when it is called by a .net client it will return NULL. I used proxytrace to check the data that goes back and forward. I can see my request and response. See below at the bottom. I believe that this error occurs because of a problem .Net has in reading my doc/literal WSDL. Or my Axis...
0
1045
by: vikram | last post by:
Hello Everyone, I am writing a .NET 1.1 client with WSE 2.0 to talk to a a client webservice. we beleive its hosted in Axis and the response is rpc/encoded. The response contains multiref tags within which the actual webmethod call result is present. The proxy class fails to understand this and as a result the result object is not populated with any value. part of the response from the webservice is shown below. It is taken
0
2389
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
0
9589
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
9423
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
10049
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
9997
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
9865
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
7413
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
6675
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();...
1
3965
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
3565
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.