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

chris snow commented on OFBIZ-3363:
-----------------------------------

I've removed auth="true" from the findPartiesById and I am trying to call the 
service.

I am sending:

{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>
            <ser:map-Entry>
               <ser:map-Key> 
                 <ser:std-String value="idToFind"/>
               </ser:map-Key>
               <ser:map-Value> 
                 <ser:std-String value="admin"/>
               </ser:map-Value>
            </ser:map-Entry>
         </map-Map>
      </ser:findPartiesById>
   </soapenv:Body>
</soapenv:Envelope>
{code}

but I am receiving:

{code}
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><Response><map-Map>
        <map-Entry>
            <map-Key>
                <std-String value="errorMessage"></std-String>
            </map-Key>
            <map-Value>
                <std-String value="Problem processing the service"></std-String>
            </map-Value>
        </map-Entry>
    </map-Map></Response></soapenv:Body></soapenv:Envelope><?xml version="1.0" 
encoding="utf-8"?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><Response><map-Map>
        <map-Entry>
            <map-Key>
                <std-String value="errorMessage"></std-String>
            </map-Key>
            <map-Value>
                <std-String value="The following required parameter is missing: 
[IN] [findPartiesById.idToFind] (The following required parameter is missing: 
[IN] [findPartiesById.idToFind])"></std-String>
            </map-Value>
        </map-Entry>
    </map-Map></Response></soapenv:Body></soapenv:Envelope>
{code}

Where am I going wrong?  Perhaps this could be used as an example in the FAQ?

Many thanks...

> 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.

Reply via email to