You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jose Luis Alba <jo...@yahoo.es> on 2007/07/27 09:13:05 UTC

[Axis2] Problem using SOAP12 vs SOAP11?

Hi, 

Recently I've been working on a test web service in Axis2 (1.3-RC1). That service launchs checked exceptions but the behavior is different if I use SOAP11 or SOAP12 from the client.

When I use SOAP12 all responses from my exceptions are and AxisFault with error 400: Bad request. (That's done in MessageContextBuilder -> createFaultEnvelope -> getSenderFaultCode)

When I use SOAP11 from the client I receive and AxisFault but this time with an status error 500 and with the message of my exception. That's is what I excepted!

Why this behavior?
There's a bug in the SOAP12?
I'm missing something?

Thanks,

Jose

       
---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.

RE: [Axis2] Problem using SOAP12 vs SOAP11?

Posted by Snehil Brajpuriya <sn...@patni.com>.
Can anybody point to a good tutorial/article on differences in WSDL
versions(1.2,2.0 mainly) and also differences in styles(RPC,
Document,literal etc.). I need to decide a suitable one for the web services
I am developing.

 

Thanks

Snehil

 

  _____  

From: keith chapman [mailto:keithgchapman@gmail.com] 
Sent: Friday, July 27, 2007 2:29 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problem using SOAP12 vs SOAP11?

 

Here are the details.
http://www.w3.org/TR/soap12-part2/#http-respbindprocess

Thanks,
Keith.

On 7/27/07, keith chapman <ke...@gmail.com> wrote:

Ho Jose,

This is not a bug. The SOAP 1.2 specification mentions that we should send
HTTP code 400 in a fault if the fault code is soap:Sender. This is the
reason for getting 400 when using SOAP 1.2 and 500 when using SOAP 1.1.

Thanks,
Keith.

 

On 7/27/07, Jose Luis Alba < <ma...@yahoo.es>
josedevmail@yahoo.es> wrote:

Hi, 

Recently I've been working on a test web service in Axis2 (1.3-RC1). That
service launchs checked exceptions but the behavior is different if I use
SOAP11 or SOAP12 from the client.

When I use SOAP12 all responses from my exceptions are and AxisFault with
error 400: Bad request. (That's done in MessageContextBuilder ->
createFaultEnvelope -> getSenderFaultCode) 

When I use SOAP11 from the client I receive and AxisFault but this time with
an status error 500 and with the message of my exception. That's is what I
excepted!

Why this behavior?
There's a bug in the SOAP12? 
I'm missing something?

Thanks,

Jose

  _____  


Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
<http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http:/advision.webevents.
yahoo.com/reto/entretenimiento.html> .







-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 




-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________

Re: [Axis2] Problem using SOAP12 vs SOAP11?

Posted by Jorge Fernandez <in...@yahoo.es>.
Hi Jose, 

There is some work around it. See:

https://issues.apache.org/jira/browse/AXIS2-2845

http://marc.info/?l=axis-dev&m=118285729209577&w=2

Regards, 

Jorge Fernández

Jose Luis Alba <jo...@yahoo.es> escribió: Hi Keith,

The problem isn't the status code. The problem is that using SOAP11 I receive Exceptions that web service launches. But using SOAP12 always I receive an AxisFault with message 400: Bad Request, not the Exception I launched.

Is for that I was talking about a bug.

Any ideas? Thanks in advance,

Jose



keith chapman <ke...@gmail.com> escribió: Here are the details. http://www.w3.org/TR/soap12-part2/#http-respbindprocess

Thanks,
Keith.

On 7/27/07,  keith chapman <ke...@gmail.com> wrote: Ho Jose,

This is not a bug. The SOAP 1.2 specification mentions that we should send HTTP code 400 in a fault if the fault code is soap:Sender. This is the reason for getting 400 when using SOAP 1.2 and 500 when using SOAP  1.1.

Thanks,
Keith.

On 7/27/07, Jose Luis Alba < josedevmail@yahoo.es> wrote: Hi, 

Recently I've been working on a test web service in Axis2 (1.3-RC1). That service launchs checked exceptions but the behavior is different if I use SOAP11 or SOAP12 from the client.

When I use SOAP12 all responses from my exceptions are and  AxisFault with error 400: Bad request. (That's done in MessageContextBuilder -> createFaultEnvelope -> getSenderFaultCode) 

When I use SOAP11 from the client I receive and AxisFault but this time with an status error 500 and with the message of my exception. That's is what I excepted!

Why this behavior?
There's a bug in the SOAP12? 
I'm missing something?

Thanks,

Jose
          

---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo?   ¡Deja que otras personas te ayuden! .






-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
 http://wso2.org/ 



-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 
          

---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .


       
---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.

Re: [Axis2] Problem using SOAP12 vs SOAP11?

Posted by Jose Luis Alba <jo...@yahoo.es>.
Hi Keith,

The problem isn't the status code. The problem is that using SOAP11 I receive Exceptions that web service launches. But using SOAP12 always I receive an AxisFault with message 400: Bad Request, not the Exception I launched.

Is for that I was talking about a bug.

Any ideas? Thanks in advance,

Jose



keith chapman <ke...@gmail.com> escribió: Here are the details. http://www.w3.org/TR/soap12-part2/#http-respbindprocess

Thanks,
Keith.

On 7/27/07,  keith chapman <ke...@gmail.com> wrote: Ho Jose,

This is not a bug. The SOAP 1.2 specification mentions that we should send HTTP code 400 in a fault if the fault code is soap:Sender. This is the reason for getting 400 when using SOAP 1.2 and 500 when using SOAP  1.1.

Thanks,
Keith.

On 7/27/07, Jose Luis Alba < josedevmail@yahoo.es> wrote: Hi, 

Recently I've been working on a test web service in Axis2 (1.3-RC1). That service launchs checked exceptions but the behavior is different if I use SOAP11 or SOAP12 from the client.

When I use SOAP12 all responses from my exceptions are and AxisFault with error 400: Bad request. (That's done in MessageContextBuilder -> createFaultEnvelope -> getSenderFaultCode) 

When I use SOAP11 from the client I receive and AxisFault but this time with an status error 500 and with the message of my exception. That's is what I excepted!

Why this behavior?
There's a bug in the SOAP12? 
I'm missing something?

Thanks,

Jose
          

---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo?   ¡Deja que otras personas te ayuden! .






-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
 http://wso2.org/ 



-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/ 

       
---------------------------------

Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.

Re: [Axis2] Problem using SOAP12 vs SOAP11?

Posted by keith chapman <ke...@gmail.com>.
Here are the details.
http://www.w3.org/TR/soap12-part2/#http-respbindprocess

Thanks,
Keith.

On 7/27/07, keith chapman <ke...@gmail.com> wrote:
>
> Ho Jose,
>
> This is not a bug. The SOAP 1.2 specification mentions that we should send
> HTTP code 400 in a fault if the fault code is soap:Sender. This is the
> reason for getting 400 when using SOAP 1.2 and 500 when using SOAP 1.1.
>
> Thanks,
> Keith.
>
> On 7/27/07, Jose Luis Alba <jo...@yahoo.es> wrote:
> >
> > Hi,
> >
> > Recently I've been working on a test web service in Axis2 (1.3-RC1).
> > That service launchs checked exceptions but the behavior is different if I
> > use SOAP11 or SOAP12 from the client.
> >
> > When I use SOAP12 all responses from my exceptions are and AxisFault
> > with error 400: Bad request. (That's done in MessageContextBuilder ->
> > createFaultEnvelope -> getSenderFaultCode)
> >
> > When I use SOAP11 from the client I receive and AxisFault but this time
> > with an status error 500 and with the message of my exception. That's is
> > what I excepted!
> >
> > Why this behavior?
> > There's a bug in the SOAP12?
> > I'm missing something?
> >
> > Thanks,
> >
> > Jose
> >
> > ------------------------------
> >
> > Sé un Mejor Amante del Cine
> > ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> > <http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html>
> > .
> >
> >
>
>
> --
> Keith Chapman
> WSO2 Inc.
> Oxygen for Web Services Developers.
> http://wso2.org/




-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/

Re: [Axis2] Problem using SOAP12 vs SOAP11?

Posted by keith chapman <ke...@gmail.com>.
Ho Jose,

This is not a bug. The SOAP 1.2 specification mentions that we should send
HTTP code 400 in a fault if the fault code is soap:Sender. This is the
reason for getting 400 when using SOAP 1.2 and 500 when using SOAP 1.1.

Thanks,
Keith.

On 7/27/07, Jose Luis Alba <jo...@yahoo.es> wrote:
>
> Hi,
>
> Recently I've been working on a test web service in Axis2 (1.3-RC1). That
> service launchs checked exceptions but the behavior is different if I use
> SOAP11 or SOAP12 from the client.
>
> When I use SOAP12 all responses from my exceptions are and AxisFault with
> error 400: Bad request. (That's done in MessageContextBuilder ->
> createFaultEnvelope -> getSenderFaultCode)
>
> When I use SOAP11 from the client I receive and AxisFault but this time
> with an status error 500 and with the message of my exception. That's is
> what I excepted!
>
> Why this behavior?
> There's a bug in the SOAP12?
> I'm missing something?
>
> Thanks,
>
> Jose
>
> ------------------------------
>
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> <http://us.rd.yahoo.com/mail/es/tagline/beabetter/*http://advision.webevents.yahoo.com/reto/entretenimiento.html>
> .
>
>


-- 
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/