473,378 Members | 1,427 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,378 software developers and data experts.

Axis Web Service, .Net Client - Interop issue with SOAP Header

Hello:

I have a Axis Web Service that sets the sessionid in the SOAP header for
persisting the session. The client is a .Net client that processes the header
as an Unknown Header. It sets the session id received from the Service
request on subsequent requests to the service. However the Axis Web service
does not process the SOAP header received from the .Net client and creates a
new session id for each request from the .Net client. Below are the SOAP
header captured from request and responses using tcpmon:
Axis Response: SOAP header sent by server
<soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0"
xmlns:ns1="http://xml.apache.org/axis/session">884521262653014708</ns1:sessionID>
</soapenv:Header>

SOAP Header sent by .Net client:
<soap:Header><ns1:sessionID
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xmlns:ns1="http://xml.apache.org/axis/session"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">884521262653014708</ns1:sessionID></soap:Header>

If you examine these headers closely, these are not exactly the same. The
..Net client is adding a namespace "soapenv". I believe this is the reason the
Axis service is not able to understand the header. How can I modify the
client to use the "soap" namesapce instead of defining a new "soapenv"
namespace?

When I test the service using an axis client, the header from the client is
exactly the same as the header sent by the server and the server is able to
process the header and maintain the session.

Any help is much appreciated.

Thanks.

--
VT
Mar 20 '06 #1
5 4123
That won't matter... think of the soapenv and soap as being the
variable names-- they can be elephant or donkey if you declare it.

However... the VALUE of these "variables" are different. That would be
a problem. I'm not seeing the soap namespace being declared in the
first. soapenv is being declared in the second...

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

You can read that basically as... the variable soapend has the value of
http://schemas.xmlsoap.org/soap/envelope/... though it's a namespace,
not a variable (two mixed concepts).

Mar 22 '06 #2
You are right, these are "variable" names.

My problem was in the deployment of the service. Thanks for the explanation.
--
VT
"ag******@gmail.com" wrote:
That won't matter... think of the soapenv and soap as being the
variable names-- they can be elephant or donkey if you declare it.

However... the VALUE of these "variables" are different. That would be
a problem. I'm not seeing the soap namespace being declared in the
first. soapenv is being declared in the second...

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

You can read that basically as... the variable soapend has the value of
http://schemas.xmlsoap.org/soap/envelope/... though it's a namespace,
not a variable (two mixed concepts).

Mar 22 '06 #3
Hello,

i'm desperately searching for an example of a .net-client sending custom
elements via the soap header as unknown soap headers. Would you please
be so kind to post yours?

thanks in advance,
Thomas

*** Sent via Developersdex http://www.developersdex.com ***
Mar 27 '06 #4
q
What is the end result you are looking for?

Mar 28 '06 #5
i'm looking for sample code of a .net client sending a request with
unkown soap headers (not defined in the webservice's wsdl).

The first posting of this thread indicated that it is possible, as i
think.

with best regards,
Thomas

*** Sent via Developersdex http://www.developersdex.com ***
Mar 28 '06 #6

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

Similar topics

3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
1
by: parrot toes | last post by:
I tried to post this question before, but there was an error when posting. I case it did get posted and in order to avoid duplication, I'll just repost a summary. I have written a dotnet client...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
7
by: Jamie Phillips | last post by:
I'm sure this topic has been "around the block" a few times, but I have not been able to find ANY solutin that fits this particular problem. I have written a Java Axis web service that has a method...
3
by: Moshe Kravchik | last post by:
Hi! We have a Web Service written in ATL Server and a client written in Java using Axis. When something goes wrong on the server side, it returns an HRESULT of the error which is translated into...
2
by: David R | last post by:
I am writing a .NET web services client that is calling an Axis web service. I have two questions. 1. The following code should set the authentication; when I call a method on the web service,...
11
by: David R | last post by:
This is a repost, with additional information. I have a Net 2.0 client (C# Winform) calling an Axis web service. The .NET client can authenticate, create requested objects, serialize the objects...
0
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...
0
by: Kjartan Furnes | last post by:
Hi, I'm trying to access a webservice on an axis server from my .net client (c#). First I have to call a login service that returns a session ID. This session id should then be added to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.