[jira] [Commented] (OFBIZ-5248) OFBiz soap based webservice response exception: "org.apache.axis2.databinding.ADBException: Unexpected subelement {http://ofbiz.apache.org/service/}map-Map"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5248) OFBiz soap based webservice response exception: "org.apache.axis2.databinding.ADBException: Unexpected subelement {http://ofbiz.apache.org/service/}map-Map"

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695448#comment-13695448 ]

Jacques Le Roux commented on OFBIZ-5248:
----------------------------------------

As I thought, you just have to change the engine from soap (which does not make sense for me with your pach) to java then:
{code}
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <exportCustomerFeedSOAPResponse xmlns="http://ofbiz.apache.org/service/">
            <map-Map>
                <map-Entry>
                    <map-Key>
                        <std-String value="responseMessage"/>
                    </map-Key>
                    <map-Value>
                        <std-String value="success"/>
                    </map-Value>
                </map-Entry>
                <map-Entry>
                    <map-Key>
                        <std-String value="customerFeedFile"/>
                    </map-Key>
                    <map-Value>
                        <std-String value="Hello world"/>
                    </map-Value>
                </map-Entry>
            </map-Map>
        </exportCustomerFeedSOAPResponse>
    </soapenv:Body>
</soapenv:Envelope>
{code}
               

> OFBiz soap based webservice response exception: "org.apache.axis2.databinding.ADBException: Unexpected subelement {http://ofbiz.apache.org/service/}map-Map"
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5248
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5248
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release 10.04
>         Environment: Window 7
>            Reporter: Brajesh Patel
>            Assignee: Jacques Le Roux
>            Priority: Blocker
>         Attachments: CustomerFeed.patch, exportCustomerFeedSOAP.wsdl, exportCustomerFeedSOAP.wsdl
>
>
> We have created an service that return(return string field) an xml document as a string,
> when we are trying this service as a SOAP based webservice in ofbiz, and invoke from AXIS2 client getting following exception:
> <code>
> "org.apache.axis2.databinding.ADBException: Unexpected subelement {http://ofbiz.apache.org/service/}map-Map"
> </code>
> Following steps:
> 1) Prepare an service with engine="soap" and export="true"
> 2) Generate wsdl file
> 3) Create an AXIS2 Client to invoke webservice
> Getting above error that I have mention.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira