473,651 Members | 2,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Axis2 and WSE3 interoperatabil ity question

My C# client (.dotNet 2.0 and WSE 3.0) generated the following SOAP
message.

<?xml version='1.0' encoding='utf-8'?>
<soap:Envelop e

xmlns:wsse="htt p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsa="http ://schemas.xmlsoap .org/ws/2004/08/addressing"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xop="http ://www.w3.org/2004/08/xop/include"
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"

xmlns:wsu="http ://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action />
<wsa:MessageI D>
urn:uuid:8a8309 c1-a21d-48ff-aa52-2647bb377cfc
</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>
http://schemas.xmlsoap.org/ws/2004/0...role/anonymous
</wsa:Address>
</wsa:ReplyTo>
<wsa:To>
http://localhost:8080/axis2/services/CMBWebService
</wsa:To>
<wsse:Securit y>
<wsu:Timestam p
wsu:Id="Timesta mp-010f1103-934c-44fb-8778-1251c874e66e">
<wsu:Created>20 06-09-20T23:12:21Z</wsu:Created>
<wsu:Expires>20 06-09-20T23:17:21Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<MyAppRequest >
....
</MyAppRequest>
</soap:Body>
</soap:Envelope>

The reply message from Axis2 server is

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelo pe
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/">
<soapenv:Head er />
<soapenv:Body >
<MyAppReply>
....
</MyAppReply>
</soapenv:Body>
</soapenv:Envelop e>

The C# client encountered this exception

Unhandled Exception:
Microsoft.Web.S ervices3.Addres sing.Addressing Fault: Message Information
Header Required ---Micros
oft.Web.Service s3.Addressing.A ddressingFormat Exception: WSE202: The
Action header is required when other address headers
are present.
--- End of inner exception stack trace ---
at Microsoft.Web.S ervices3.Addres sing.Addressing Headers.CheckVa lid()
at
Microsoft.Web.S ervices3.Addres sing.Addressing Headers.Load(So apEnvelope
envelope)
at Microsoft.Web.S ervices3.SoapEn velope.PostLoad (Boolean
loadAddressing)
at Microsoft.Web.S ervices3.SoapEn velope.PostLoad ()
at Microsoft.Web.S ervices3.SoapEn velope.Load(Xml Reader reader)
at Microsoft.Web.S ervices3.Mime.X opDocument.Load StartPart(MimeP art
startPart)
at
Microsoft.Web.S ervices3.Mime.X opDocument.Load FromXopPackage( String
contentType, Stream stream)
at
Microsoft.Web.S ervices3.Xml.So apEnvelopeReade rWrapper..ctor( SoapClientMessa ge message, String messageContentT ype)
at
Microsoft.Web.S ervices3.WebSer vicesClientProt ocol.GetReaderF orMessage(SoapC lientMessage message, Int32 bufferSize)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage message, WebResponse response,
Stream responseStream, Boolean asyncCall)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)

I guess it's about some configuration on client side or server side.
Can someone tell me what the fix is?

Thanks in advance,

vick

Sep 20 '06 #1
2 5580
It seems like the service is not returning the action header (wsa:Action)
..Could you confirm that ?.
WSE requires that header.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax

"yewen" <ye***@discussi ons.microsoft.c omwrote in message
news:0B******** *************** ***********@mic rosoft.com...
My C# client (.dotNet 2.0 and WSE 3.0) generated the following SOAP
message.

<?xml version='1.0' encoding='utf-8'?>
<soap:Envelop e

xmlns:wsse="htt p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsa="http ://schemas.xmlsoap .org/ws/2004/08/addressing"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xop="http ://www.w3.org/2004/08/xop/include"
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/"

xmlns:wsu="http ://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action />
<wsa:MessageI D>
urn:uuid:8a8309 c1-a21d-48ff-aa52-2647bb377cfc
</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>
http://schemas.xmlsoap.org/ws/2004/0...role/anonymous
</wsa:Address>
</wsa:ReplyTo>
<wsa:To>
http://localhost:8080/axis2/services/CMBWebService
</wsa:To>
<wsse:Securit y>
<wsu:Timestam p
wsu:Id="Timesta mp-010f1103-934c-44fb-8778-1251c874e66e">
<wsu:Created>20 06-09-20T23:12:21Z</wsu:Created>
<wsu:Expires>20 06-09-20T23:17:21Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<MyAppRequest >
....
</MyAppRequest>
</soap:Body>
</soap:Envelope>

The reply message from Axis2 server is

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelo pe
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/">
<soapenv:Head er />
<soapenv:Body >
<MyAppReply>
....
</MyAppReply>
</soapenv:Body>
</soapenv:Envelop e>

The C# client encountered this exception

Unhandled Exception:
Microsoft.Web.S ervices3.Addres sing.Addressing Fault: Message Information
Header Required ---Micros
oft.Web.Service s3.Addressing.A ddressingFormat Exception: WSE202: The
Action header is required when other address headers
are present.
--- End of inner exception stack trace ---
at Microsoft.Web.S ervices3.Addres sing.Addressing Headers.CheckVa lid()
at
Microsoft.Web.S ervices3.Addres sing.Addressing Headers.Load(So apEnvelope
envelope)
at Microsoft.Web.S ervices3.SoapEn velope.PostLoad (Boolean
loadAddressing)
at Microsoft.Web.S ervices3.SoapEn velope.PostLoad ()
at Microsoft.Web.S ervices3.SoapEn velope.Load(Xml Reader reader)
at Microsoft.Web.S ervices3.Mime.X opDocument.Load StartPart(MimeP art
startPart)
at
Microsoft.Web.S ervices3.Mime.X opDocument.Load FromXopPackage( String
contentType, Stream stream)
at
Microsoft.Web.S ervices3.Xml.So apEnvelopeReade rWrapper..ctor( SoapClientMessa ge
message, String messageContentT ype)
at
Microsoft.Web.S ervices3.WebSer vicesClientProt ocol.GetReaderF orMessage(SoapC lientMessage
message, Int32 bufferSize)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message, WebResponse response,
Stream responseStream, Boolean asyncCall)
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)

I guess it's about some configuration on client side or server side.
Can someone tell me what the fix is?

Thanks in advance,

vick

Sep 22 '06 #2
It seems like the service is not returning the action header (wsa:Action)
.Could you confirm that ?.
WSE requires that header.
And it must match with the value of SOAPAction HTTP-Header.
--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------
Sep 24 '06 #3

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

Similar topics

0
1212
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to use WSE3. Create a new webservice in the app via Add New Item WebService Alter code for webservice so the service inherits from SoapService, instead of the defaults, like so: (this forces your service to use
0
1337
by: David G | last post by:
I have a web service originally written to use soap.tcp transport in WSE2 that now uses http transport under WSE3. The WSE2 method looked like public IndividualLookupResponse IndividualLookup( IndividualLookupRequest request ) The WSE3 method looks like
1
12277
by: Florian Grousset | last post by:
Hi, I'm trying to code a simple C# SOAP client wich query an Axis2 Java SOAP Server. Server side code has been generated from a WSDL file. SOAP requests and responses must both contain a simple String array (not very diffucult I think !). What I've done : 1. WSDL file writing (see at the bottom of this post)
1
2414
by: zaheermabbas | last post by:
Hello All, I have been following the release documentation of axis, i wanted the axis2.war by building the sources, i have downloaded the source, and as it is specified in the doc to build the sources through maven. I am running on Maven2.0.4 but my Build process is failing because of the following reason, *********************************************************************************************** + Error stacktraces are turned on. ...
1
4077
by: Ollie Riches | last post by:
Hi, I am recieving an exception when adding support for MTOM to a web config file that is using WSE3.0 to talk to a web service. when the following section is added: <messaging> <mtom clientMode="On" /> </messaging>
2
3335
by: sksura | last post by:
Hi My client machine is using framework 1.1. The web service is also developed based on framework1.1. Between the clent and webservice host i am using an intermediate machine in which WSE3.0 is installed (WSE3.0 is based on framework2.0). I created a webservice i.e. Perimeter Router Service in this intermediate machine which will route the request from client to the particular webservice host. Problem: In this case is my client machine...
2
2959
by: Paul BE | last post by:
Hi, Can someone point me to a C# sample which calls an Axis2 XML Web Service? Thanks !
0
1351
by: | last post by:
I used to resolve the issue between .NET and Axis. I am using Complex Types. I can receive an object, as a param, from the client; however, the return object is not document/literal as the expected. My question is, can I specify and force the return as doc/lit rather than rpc/enc? I am using VB.NET. VS 2003. Client is using Axis2 v1.1 TiA, Stan
1
2246
by: popemonica | last post by:
Hi Everybody! I´m trying to use a webservice made with axis2 from VB6. I have severals methods in the service. One of them doesn´t recive parameters when I invoke it and the result of the calling is ok, but when I invoke a method with one parameter I recive the following error: "Unexpected Subelement". I´m using Microsoft SOAP Toolkit 3.0 for calling the service. This is the code that I use: Dim clnt As New SoapClient30 Dim...
0
8347
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
8275
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,...
1
8457
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
8571
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
6157
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
5605
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
4280
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
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
1
1905
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.