[ https://issues.apache.org/jira/browse/OFBIZ-3363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793469#action_12793469 ]
Chatree Srichart commented on OFBIZ-3363: ----------------------------------------- Hi, Chris Snow Because XmlSerializer of OFBiz use tag's name for serialize/deserialze. So SOAP xml message don't need prefix for each tag. Can you change your code like this... {code} <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://ofbiz.apache.org/service/"> <soapenv:Header/> <soapenv:Body> <ser:findPartiesById> <map-Map> <map-Entry> <map-Key> <std-String value="idToFind"/> </map-Key> <map-Value> <std-String value="admin"/> </map-Value> </map-Entry> </map-Map> </ser:findPartiesById> </soapenv:Body> </soapenv:Envelope> {code} How do you think about this solution or it should can use prefix in XML message? Thank you > Upgrading Axis V1 to V2 in OFbiz's Web Service and Complex Type Supported > ------------------------------------------------------------------------- > > Key: OFBIZ-3363 > URL: https://issues.apache.org/jira/browse/OFBIZ-3363 > Project: OFBiz > Issue Type: New Feature > Components: framework > Affects Versions: SVN trunk > Reporter: Chatree Srichart > Assignee: Hans Bakker > Fix For: SVN trunk > > Attachments: axis2.diff, libraries.zip, testSoap.wsdl, types.xsd > > > Upgrading Axis V1 to V2 in OFbiz's Web Service and Complex Type Supported > I change OFBiz's web service API to Axis2. > ==Client Engine== > 1. XMLSerializer to serialize parameters Map object to XML. > 2. create OMElement from XML stream. > 3. ServiceClient send SOAP message. > 4. get result OMElement. > 5. convert XML content in OMElement to results Map object. > ==Event Handler== > 1. create OMElement from InputStream > 2. get service's name > 3. XMLSerializer to deserialize parameters XML to Map object > 4. call specific service > 5. XMLSerializer to serializer service's results Map object to XML > 6. create OMElement for service's results > 7. send OMElement to response > ==Apply Axis2 in OFBiz== > 1. apply patch > 2. unzip libraries.zip and copy all jar files to framework/service/lib > directory > ==Test SOAP Service== > run unit test: > ./ant run-single-test -Dtest.component=service -Dtest.case=service-soap-tests > This is a test case that demonstrate service engine can sent both of single > type and complex type > ==WSDL== > The testSoap.wsdl file is web service definition language of testSoap service. > Every services require map-Map as type of input/output parameter. In map-Map > consist of key/value pair for service's parameters. > In wsdl:part of wsdl:message has wsdl:documentation which state service's > attribute, consist of > 1. name > 2. type > 3. namespace > 4. java-class > 5. optional > ==WSDL Types== > The types.xsd file is xml schema for complex type > WSDL Types be generated by code. If any one has a better solution please > comment this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.