Hi Anamitra;

[EMAIL PROTECTED] wrote:

>Hi Depal
>I am sorry that was my bad - I was not using the stubs and I was posting
>the xml directly inside <xmldata> element without escaping it. But that
>still leaves the byte[] issue standing. Why do you think axis is generating
>the binding as
>xs:element minOccurs="0" type="xs:byte" name="xmldata"
>maxOccurs="unbounded"
>
>for the method signature public String processData(String ifaceName, String
>extsysName, byte[] xmldata)
>
>BTW when I change the signature to
>
>public String processData(String ifaceName, String extsysName, OMElement
>xmldata)
>
>the binding is xs:anyType for the xmldata and when I post the xml like
>
><m:processData xmlns:m="http://testws.iface.psdi/xsd";>
>     <ifaceName>anna111</ifaceName>
>     <extsysName>222222</extsysName>
>     <xmldata><name>anamitra</name></xmldata>
></m:processData>
>
>the xmldata OMElement is givent to me as
><xmldata><name>anamitra</name></xmldata> and not just
><name>anamitra</name>. I am just putting the raw xml in the request and not
>escaping it. Is this how its supposed to work for OMElement data type.
>  
>
Yes , when the method take OM element we give him the complete OMElement
not the value of it.

>thanks
>Anamitra
>
>
>
>                                                                           
>             Deepal Jayasinghe                                             
>             <[EMAIL PROTECTED]                                             
>             e.lk>                                                      To 
>                                       axis-user@ws.apache.org             
>             06/08/2006 05:35                                           cc 
>             AM                                                            
>                                                                   Subject 
>                                       Re: [Axis2]wsdl schema type         
>             Please respond to         generation bug with byte[]- More    
>             [EMAIL PROTECTED]         bugs??                              
>                  he.org                                                   
>                                                                           
>                                                                           
>                                                                           
>                                                                           
>                                                                           
>
>
>
>
>Hi Anamitra;
>I wrote a service implementation class with your method , and then I
>generated the code and invoke the service and I got the following
>response. So I can not find any bug can you please check the current
>code base and let me know.
>
>         MemberServiceStub stub = new MemberServiceStub();
>        MemberServiceStub.ProcessData req = new
>MemberServiceStub.ProcessData();
>        req.setExtsysName("Deepal");
>        req.setIfaceName("123");
>        req.setXmldata("<MXINVBALInterface>hello</MXINVBALInterface>");
>        MemberServiceStub.ProcessDataResponse res = stub.processData(req);
>        System.out.println("res = " + res.get_return());
>
>Out put was     res = <MXINVBALInterface>hello</MXINVBALInterface>
>
>
>And the service impl class look like;
>  public String processData(String ifaceName, String extsysName, String
>            xmldata) {
>        return xmldata;
>    }
>
>
>[EMAIL PROTECTED] wrote:
>
>  
>
>>Hi
>>This is in contunuation of the prev mail. I changed my method signature to
>>take in String instead of byte[]
>>public String processData(String ifaceName, String extsysName, String
>>xmldata)
>>
>>and the schema generated was as below
>>
>><xs:element name="processData">
>>           - <xs:complexType>
>>             - <xs:sequence>
>>                 <xs:element type="xs:string" name="ifaceName" />
>>                 <xs:element type="xs:string" name="extsysName" />
>>                 <xs:element type="xs:string" name="xmldata" />
>>             </xs:sequence>
>>           </xs:complexType>
>>         </xs:element>
>>       and the xml that I tried from client was
>>
>><m:processData xmlns:m="http://testws.iface.psdi/xsd";>
>>     <ifaceName>anna111</ifaceName>
>>     <extsysName>222222</extsysName>
>>     <xmldata><MXINVBALInterface>hello</MXINVBALInterface></xmldata>
>></m:processData>
>>
>>but when I printed in the service I got
>>anna111,222222,
>>
>>But if I try with no xml tags - it works good
>><m:processData xmlns:m="http://testws.iface.psdi/xsd";>
>>     <ifaceName>anna111</ifaceName>
>>     <extsysName>222222</extsysName>
>>     <xmldata>hello</xmldata>
>></m:processData>
>>
>>and the o/p is
>>anna111,222222,hello
>>
>>
>>Again is this a bug? or my bad?
>>
>>thanks
>>Anamitra
>>
>>
>>
>>
>>    
>>
>
>  
>
>>            Anamitra.Bhattach
>>    
>>
>
>  
>
>>            [EMAIL PROTECTED]
>>    
>>
>
>  
>
>>                                                                       To
>>    
>>
>
>  
>
>>            06/07/2006 04:39          <axis-user@ws.apache.org>
>>    
>>
>
>  
>
>>            PM                                                         cc
>>    
>>
>
>  
>
>
>  
>
>>                                                                  Subject
>>    
>>
>
>  
>
>>            Please respond to         [Axis2]wsdl schema type generation
>>    
>>
>
>  
>
>>            [EMAIL PROTECTED]         bug with byte[]
>>    
>>
>
>  
>
>>                 he.org
>>    
>>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>
>  
>
>>
>>
>>
>>Hi
>>I have a service with an operation whose signature reads like this
>>
>>public String processData(String ifaceName, String extsysName, byte[]
>>xmldata)
>>
>>when I deploy this service the wsdl generated will show the schema element
>>as below. The byte[] data type has been represented as
>>               xs:element minOccurs="0" type="xs:byte" name="xmldata"
>>               maxOccurs="unbounded"
>>               This is not how its supposed to represent this byte[] data
>>               type as per jax rpc its supposed to be xs:base64Binary.
>>Is this a bug - or I am missing something.
>>
>><xs:element name="processData">
>>           - <xs:complexType>
>>             - <xs:sequence>name="ifaceName" />name="extsysName"
>>    
>>
>/>type="xs:byte" name="xmldata"
>  
>
>>               maxOccurs="unbounded" /></xs:sequence>
>>       thanks
>>       Anamitra
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>>    
>>
>
>--
>Thanks,
>Deepal
>................................................................
>~Future is Open~
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to