You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/03/12 18:23:09 UTC

[jira] Created: (AXIS2-2311) UnmarshalException for method with a header (no ObjectFactory)

UnmarshalException for method with a header (no ObjectFactory)
--------------------------------------------------------------

                 Key: AXIS2-2311
                 URL: https://issues.apache.org/jira/browse/AXIS2-2311
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
            Reporter: Davanum Srinivas
         Assigned To: Rich Scheuerle



Am getting an Unmarshal Exception. Please see code and soap request below. FYI. Name is a pojo with a firstname/lastname (no annotations)

====================== Server-side code ==============================
package webparam.webparam2.server;

@WebService
public class webParam2WebService {
  @WebMethod(operationName="helloString6", action="urn:HelloString6")
  public String hello6(@WebParam (name="string1", header=true) Name name) {
    return "Hello " + name + " to Web Service";
  }
}
========================== SOAP Request ==========================
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Header>
		<ns4:string1 xmlns:ns4="http://server.webparam2.webparam/">
			<firstName>abc</firstName>
			<lastName>def</lastName>
		</ns4:string1>
	</soapenv:Header>
	<soapenv:Body>
		<ns4:helloString6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://server.webparam2.webparam/" xsi:nil="true"/>
	</soapenv:Body>
</soapenv:Envelope>




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2311) UnmarshalException for method with a header (no ObjectFactory)

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2311.
-------------------------------------

    Resolution: Fixed

Latest svn seems to have fixed this.

thanks,
dims

> UnmarshalException for method with a header (no ObjectFactory)
> --------------------------------------------------------------
>
>                 Key: AXIS2-2311
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2311
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Assigned To: Rich Scheuerle
>
> Am getting an Unmarshal Exception. Please see code and soap request below. FYI. Name is a pojo with a firstname/lastname (no annotations)
> ====================== Server-side code ==============================
> package webparam.webparam2.server;
> @WebService
> public class webParam2WebService {
>   @WebMethod(operationName="helloString6", action="urn:HelloString6")
>   public String hello6(@WebParam (name="string1", header=true) Name name) {
>     return "Hello " + name + " to Web Service";
>   }
> }
> ========================== SOAP Request ==========================
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Header>
> 		<ns4:string1 xmlns:ns4="http://server.webparam2.webparam/">
> 			<firstName>abc</firstName>
> 			<lastName>def</lastName>
> 		</ns4:string1>
> 	</soapenv:Header>
> 	<soapenv:Body>
> 		<ns4:helloString6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://server.webparam2.webparam/" xsi:nil="true"/>
> 	</soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2311) UnmarshalException for method with a header (no ObjectFactory)

Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480205 ] 

Rich Scheuerle commented on AXIS2-2311:
---------------------------------------

This is a doc/lit wrapped scenario.  

I am not sure that I agree with the content of the body.  The wrapper element should not have an xsi:nil="true".

This seems to be a client problem.

Can you please provide the exception stack.

----------------------------
Also please provide Name.  Is this a xjc generated object ? Does its @XmlRootElement comply with the @WebParam setting.

I think you are digging on some new issues here...but I need more information.

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

Finally is this CTS related or  is related to vendor feature comparisons ?

> UnmarshalException for method with a header (no ObjectFactory)
> --------------------------------------------------------------
>
>                 Key: AXIS2-2311
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2311
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Davanum Srinivas
>         Assigned To: Rich Scheuerle
>
> Am getting an Unmarshal Exception. Please see code and soap request below. FYI. Name is a pojo with a firstname/lastname (no annotations)
> ====================== Server-side code ==============================
> package webparam.webparam2.server;
> @WebService
> public class webParam2WebService {
>   @WebMethod(operationName="helloString6", action="urn:HelloString6")
>   public String hello6(@WebParam (name="string1", header=true) Name name) {
>     return "Hello " + name + " to Web Service";
>   }
> }
> ========================== SOAP Request ==========================
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Header>
> 		<ns4:string1 xmlns:ns4="http://server.webparam2.webparam/">
> 			<firstName>abc</firstName>
> 			<lastName>def</lastName>
> 		</ns4:string1>
> 	</soapenv:Header>
> 	<soapenv:Body>
> 		<ns4:helloString6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://server.webparam2.webparam/" xsi:nil="true"/>
> 	</soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org