int and integer TypeMapping

2005-06-01 Thread Marko Käis








Or is there any possibility to change type
pefore deserializing in all requests using handlers?



Marko K











From: Marko Kis
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 01, 2005
10:55 AM
To: axis-user@ws.apache.org
Subject: int and integer
TypeMapping





Hi

Because of converting from XML-RPC to SOAP I have to accept
both int and integer types, but axis serializes int as java.lang.Integer and
integer as java.math.BigInteger. How can I tell axis to serialize both types,
say, into java.lang.Integer?



My current (generated) wsdd looks like this:



 typeMapping


xmlns:ns=http://namespace/myname 


qname=ns:Query1_request


type=java:myNameSpace.Query1_request


serializer=org.apache.axis.encoding.ser.BeanSerializerFactory


deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory


encodingStyle=http://schemas.xmlsoap.org/soap/encoding/

 /



So the element in question is a bean field.



Example of error when user_codes type is int:

- Could not convert java.lang.Integer to bean field
'user_code', type java.math.BigInteger





Marko K








Mime attachments referenced in SOAP envelope

2005-05-12 Thread Marko Käis








Hi.



My web-service needs to receive an array of documents (document
contains name and content):



ArrayOfDocuments  Document  (name:string;
content:base64Binary)



Client demands that document content is sent as an mime attachment and
SOAP envelope contains a reference to each attachment.



What is the correct WSDL for this kind of structure to generate java
classes?



Does Axis support receiving referenced content?





An example of SOAP message as my client fancies it:



ArrayOfDocuments
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/
soapenc:arrayType=ns6:documentType[1]
xsi:type=soapenc:Array

item
xsi:type=ns6:documentType

name
xsi:type=xsd:stringasdasd/name

content
href="">

/item

/ArrayOfDocuments



Marko