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

Axis2 and WSE3 interoperatability question

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

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

xmlns:wsse="http://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="http://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:MessageID>
urn:uuid:8a8309c1-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:Security>
<wsu:Timestamp
wsu:Id="Timestamp-010f1103-934c-44fb-8778-1251c874e66e">
<wsu:Created>2006-09-20T23:12:21Z</wsu:Created>
<wsu:Expires>2006-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:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<MyAppReply>
....
</MyAppReply>
</soapenv:Body>
</soapenv:Envelope>

The C# client encountered this exception

Unhandled Exception:
Microsoft.Web.Services3.Addressing.AddressingFault : Message Information
Header Required ---Micros
oft.Web.Services3.Addressing.AddressingFormatExcep tion: WSE202: The
Action header is required when other address headers
are present.
--- End of inner exception stack trace ---
at Microsoft.Web.Services3.Addressing.AddressingHeade rs.CheckValid()
at
Microsoft.Web.Services3.Addressing.AddressingHeade rs.Load(SoapEnvelope
envelope)
at Microsoft.Web.Services3.SoapEnvelope.PostLoad(Bool ean
loadAddressing)
at Microsoft.Web.Services3.SoapEnvelope.PostLoad()
at Microsoft.Web.Services3.SoapEnvelope.Load(XmlReade r reader)
at Microsoft.Web.Services3.Mime.XopDocument.LoadStart Part(MimePart
startPart)
at
Microsoft.Web.Services3.Mime.XopDocument.LoadFromX opPackage(String
contentType, Stream stream)
at
Microsoft.Web.Services3.Xml.SoapEnvelopeReaderWrap per..ctor(SoapClientMessage message, String messageContentType)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetReaderForMessage(SoapClientMessage message, Int32 bufferSize)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response,
Stream responseStream, Boolean asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.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 5565
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***@discussions.microsoft.comwrote in message
news:0B**********************************@microsof t.com...
My C# client (.dotNet 2.0 and WSE 3.0) generated the following SOAP
message.

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

xmlns:wsse="http://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="http://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:MessageID>
urn:uuid:8a8309c1-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:Security>
<wsu:Timestamp
wsu:Id="Timestamp-010f1103-934c-44fb-8778-1251c874e66e">
<wsu:Created>2006-09-20T23:12:21Z</wsu:Created>
<wsu:Expires>2006-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:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header />
<soapenv:Body>
<MyAppReply>
....
</MyAppReply>
</soapenv:Body>
</soapenv:Envelope>

The C# client encountered this exception

Unhandled Exception:
Microsoft.Web.Services3.Addressing.AddressingFault : Message Information
Header Required ---Micros
oft.Web.Services3.Addressing.AddressingFormatExcep tion: WSE202: The
Action header is required when other address headers
are present.
--- End of inner exception stack trace ---
at Microsoft.Web.Services3.Addressing.AddressingHeade rs.CheckValid()
at
Microsoft.Web.Services3.Addressing.AddressingHeade rs.Load(SoapEnvelope
envelope)
at Microsoft.Web.Services3.SoapEnvelope.PostLoad(Bool ean
loadAddressing)
at Microsoft.Web.Services3.SoapEnvelope.PostLoad()
at Microsoft.Web.Services3.SoapEnvelope.Load(XmlReade r reader)
at Microsoft.Web.Services3.Mime.XopDocument.LoadStart Part(MimePart
startPart)
at
Microsoft.Web.Services3.Mime.XopDocument.LoadFromX opPackage(String
contentType, Stream stream)
at
Microsoft.Web.Services3.Xml.SoapEnvelopeReaderWrap per..ctor(SoapClientMessage
message, String messageContentType)
at
Microsoft.Web.Services3.WebServicesClientProtocol. GetReaderForMessage(SoapClientMessage
message, Int32 bufferSize)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response,
Stream responseStream, Boolean asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.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
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...
0
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...
1
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...
1
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...
1
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...
2
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...
2
by: Paul BE | last post by:
Hi, Can someone point me to a C# sample which calls an Axis2 XML Web Service? Thanks !
0
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...
1
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...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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...
0
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,...

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.