axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1250) Problem in Char deserialzing in ADB
Date Tue, 10 Oct 2006 00:05:19 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1250?page=comments#action_12441019 ] 
            
Davanum Srinivas commented on AXIS2-1250:
-----------------------------------------

import org.tempuri.BaseDataTypesDocLitBServiceStub;
import org.tempuri.InChar;
import org.tempuri.RetCharResult;
import com.microsoft.schemas._2003._10.serialization._char;

public class Main {
    public static void main(String[] args) throws Exception {
        BaseDataTypesDocLitBServiceStub stub = new BaseDataTypesDocLitBServiceStub();
        InChar in = new InChar();
        _char ch = new _char();
        ch.set_char(34);
        in.setInChar(ch);
        RetCharResult result = stub.RetChar(in);
        System.out.println(result.getRetCharResult().get_char());

    }
}


> Problem in Char deserialzing in ADB
> -----------------------------------
>
>                 Key: AXIS2-1250
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1250
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Deepal Jayasinghe
>            Priority: Blocker
>
> I code gen for follwoing wsdl
> http://10.10.32.127/SoapWsdl_BaseDataTypes_XmlFormatter_Service_Indigo/BaseDataTypesDocLitB.svc?wsdl
> And req and res in TCP as follows
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>       <soapenv:Header />
>       <soapenv:Body>
>          <ns1:inChar xmlns:ns1="http://tempuri.org/">32</ns1:inChar>
>       </soapenv:Body>
>    </soapenv:Envelope>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>    <s:Body>
>       <RetCharResult xmlns="http://tempuri.org/">32</RetCharResult>
>    </s:Body></s:Envelope>
> But Axis2 giving me the following error
> java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement RetCharResult
> 	at org.tempuri.BaseDataTypesDocLitBServiceStub.fromOM(BaseDataTypesDocLitBServiceStub.java:22365)
> 	at org.tempuri.BaseDataTypesDocLitBServiceStub.RetChar(BaseDataTypesDocLitBServiceStub.java:3265)
> 	at interop.RunnerADBbare.testRetChar(RunnerADBbare.java:675)
> 	at interop.RunnerADBbare.main(RunnerADBbare.java:85)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message