473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

cannot get a reploy from a dotnet2 web service

hi...
i'm trying to use axis2 to call a dotnet web service..
public class Service : System.Web.Services.WebService
{
public Service () {}

[WebMethod]
public string HelloWorld() {
return "Hello World";
}

}

the java code is this:

public static String execute(final String endPoint,final String
serviceNS,final String method,Object[] prms) throws AxisFault{

RPCServiceClient client=new RPCServiceClient();
client.getOptions().setAction(serviceNS+method);

client.setTargetEPR(new EndpointReference(endPoint));
return client.invokeBlocking(new QName(serviceNS,method),
prms).toString();
}

the soap request looks like this:

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
<soapenv:Body>
<HelloWorld xmlns="http://tempuri.org/" />
</soapenv:Body>
</soapenv:Envelope>

http headers:

<HTTPHeaders>
<content-type>text/xml; charset=UTF-8</content-type>
<soapaction>"http://tempuri.org/HelloWorld"</soapaction>
<user-agent>Axis2</user-agent>
<host>localhost</host>
<transfer-encoding>chunked</transfer-encoding>
</HTTPHeaders>

but i get an AxisFault: The input stream for an incoming message is
null.

i've placed a break point on the server, and i see the service is not
being activated at all. what am i missing?

Aug 14 '07 #1
3 2039
<el********@gmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
hi...
i'm trying to use axis2 to call a dotnet web service..
public class Service : System.Web.Services.WebService
{
public Service () {}

[WebMethod]
public string HelloWorld() {
return "Hello World";
}

}

the java code is this:

public static String execute(final String endPoint,final String
serviceNS,final String method,Object[] prms) throws AxisFault{

RPCServiceClient client=new RPCServiceClient();
client.getOptions().setAction(serviceNS+method);

client.setTargetEPR(new EndpointReference(endPoint));
return client.invokeBlocking(new QName(serviceNS,method),
prms).toString();
}

the soap request looks like this:

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
<soapenv:Body>
<HelloWorld xmlns="http://tempuri.org/" />
</soapenv:Body>
</soapenv:Envelope>

http headers:

<HTTPHeaders>
<content-type>text/xml; charset=UTF-8</content-type>
<soapaction>"http://tempuri.org/HelloWorld"</soapaction>
<user-agent>Axis2</user-agent>
<host>localhost</host>
<transfer-encoding>chunked</transfer-encoding>
</HTTPHeaders>

but i get an AxisFault: The input stream for an incoming message is
null.

i've placed a break point on the server, and i see the service is not
being activated at all. what am i missing?
You seem to be missing a diagnostic strategy.

Your problem could be anything at all. Are the packets even reaching the
server? Is the web site hosting the service configured correctly?

You might have some luck using a product like soapUI (from
http://www.soapUI.org which can send and receive messages to/from a web
service and can also log the HTTP traffic during the operations.
Alternatively, look at the network traffic with something like TCPTrace
(http://www.pocketsoap.org).
--
John Saunders [MVP]

Aug 14 '07 #2
i'm pretty sure they reach the sever, i'm axis 2 as the client and
casini as the webserver, prior do that i got an excpetion saying the
server didn't recgonize the soap action (it was the default urn:Block
something) once i changed the soap action to namespace of the
webservice along with the operaiton itself i got this error.

i allready attempted to use the axis2 client to axis server and
succseeded, using net client to net server also worked, as trace i'm
using the one that came with soaptoolkit, and was able to compare the
request (from net client and axis net) and they seem the same
(although net client had more namespaces which were not used like
xsi).
On Aug 15, 1:58 am, "John Saunders [MVP]" <john.saunders at
trizetto.comwrote:
<elh.maa...@gmail.comwrote in message

news:11*********************@g4g2000hsf.googlegrou ps.com...


hi...
i'm trying to use axis2 to call a dotnet web service..
public class Service : System.Web.Services.WebService
{
public Service () {}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
the java code is this:
public static String execute(final String endPoint,final String
serviceNS,final String method,Object[] prms) throws AxisFault{
RPCServiceClient client=new RPCServiceClient();
client.getOptions().setAction(serviceNS+method);
client.setTargetEPR(new EndpointReference(endPoint));
return client.invokeBlocking(new QName(serviceNS,method),
prms).toString();
}
the soap request looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
<soapenv:Body>
<HelloWorld xmlns="http://tempuri.org/" />
</soapenv:Body>
</soapenv:Envelope>
http headers:
<HTTPHeaders>
<content-type>text/xml; charset=UTF-8</content-type>
<soapaction>"http://tempuri.org/HelloWorld"</soapaction>
<user-agent>Axis2</user-agent>
<host>localhost</host>
<transfer-encoding>chunked</transfer-encoding>
</HTTPHeaders>
but i get an AxisFault: The input stream for an incoming message is
null.
i've placed a break point on the server, and i see the service is not
being activated at all. what am i missing?

You seem to be missing a diagnostic strategy.

Your problem could be anything at all. Are the packets even reaching the
server? Is the web site hosting the service configured correctly?

You might have some luck using a product like soapUI (fromhttp://www.soapUI.orgwhich can send and receive messages to/from a web
service and can also log the HTTP traffic during the operations.
Alternatively, look at the network traffic with something like TCPTrace
(http://www.pocketsoap.org).
--
John Saunders [MVP]- Hide quoted text -

- Show quoted text -

Aug 15 '07 #3
<el********@gmail.comwrote in message
news:11*********************@r29g2000hsg.googlegro ups.com...
i'm pretty sure they reach the sever, i'm axis 2 as the client and
casini as the webserver, prior do that i got an excpetion saying the
server didn't recgonize the soap action (it was the default urn:Block
something) once i changed the soap action to namespace of the
webservice along with the operaiton itself i got this error.

i allready attempted to use the axis2 client to axis server and
succseeded, using net client to net server also worked, as trace i'm
using the one that came with soaptoolkit, and was able to compare the
request (from net client and axis net) and they seem the same
(although net client had more namespaces which were not used like
xsi).
I would compare the two very closely, especially including the use of
namespaces.
--
John Saunders [MVP]

Aug 15 '07 #4

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

Similar topics

3
by: Bryan | last post by:
We created a Windows Service with C#. The service will start OK on computers that are a member of a domain, but when we try to start it on a server that is configured for a workgroup we get the...
3
by: caldera | last post by:
Hi, I write a windows service. In that service I create a new subkey for registry. But service install is call CreateSubKey() the program throw an exception to the event log said that Cannot write...
4
by: Chris | last post by:
I posted this in the C# language group, then thought it might be more appropriate in this group. I would not cross-post except I want the answer so badly. I built small C# Web and Web Service...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
7
by: George Jordanov Ivanov | last post by:
Folks, I have to design the WSDL files of a bunch of XML Web Services. But, unfortunately, I am not very keen on writing the WSDL file line by line, and moreover be aware of the whole standard...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
3
by: donnyma | last post by:
I have a problem that looks like it has not been discussed before in these groups. I have a simple SQLAgent job that runs sp_who (could be anything, but let's just say sp_who for this example). ...
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...

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.