Need SOAP to return string, not map

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

Need SOAP to return string, not map

MikeBranch
Greetings – I’m building SOAP services in OFBiz for a canned client, i.e.,
one that I can’t modify. It requires a simple string as a return value, as
in:



<soap:Envelope… >

   <soap:Body>

      <getMessage… >

         <getMessageResult>Hello SOAP!</getMessageResult>

      </getMessage>

   </soap:Body>

</soap:Envelope>



In one case I also need to return an array of strings.



OFBiz, out of the box, can only return a Map. In digging through the
Advanced Framework training transcription (p. 200) I see that extra work is
required to accomplish something like this. Does anybody have an example of
such a beast?



Specifically I’m trying to talk to the QuickBooks Web Connector. Note that
this is different from the OFBiz QB samples that are frequently referenced,
as those don’t appear to use the QB Web Connector.



Thanks in advance for any help.



*Mike Branch*

*White Rabbit Services, Inc.*

*Certified QuickBooks ProAdvisor - QuickBooks Enterprise Solutions, Point of
Sale*

*Custom Software Development and Certified QuickBase Developer*

*Phone/Text: 425.941.7648 <[hidden email]>*

** <[hidden email]>** [hidden email]*

*Web: www.whiterabbitservices.com*

*IM: [hidden email]*
Reply | Threaded
Open this post in threaded view
|

Re: Need SOAP to return string, not map

hans_bakker
We are in the process of making this possible.

I expect a first version in the next couple of weeks.

for a description check:
http://mail-archives.apache.org/mod_mbox/ofbiz-user/201007.mbox/<1277956975.2186.111.camel@hans-laptop>
Regards,
Hans

On Tue, 2010-07-27 at 11:18 -0700, Mike Branch wrote:

> Greetings – I’m building SOAP services in OFBiz for a canned client, i.e.,
> one that I can’t modify. It requires a simple string as a return value, as
> in:
>
>
>
> <soap:Envelope… >
>
>    <soap:Body>
>
>       <getMessage… >
>
>          <getMessageResult>Hello SOAP!</getMessageResult>
>
>       </getMessage>
>
>    </soap:Body>
>
> </soap:Envelope>
>
>
>
> In one case I also need to return an array of strings.
>
>
>
> OFBiz, out of the box, can only return a Map. In digging through the
> Advanced Framework training transcription (p. 200) I see that extra work is
> required to accomplish something like this. Does anybody have an example of
> such a beast?
>
>
>
> Specifically I’m trying to talk to the QuickBooks Web Connector. Note that
> this is different from the OFBiz QB samples that are frequently referenced,
> as those don’t appear to use the QB Web Connector.
>
>
>
> Thanks in advance for any help.
>
>
>
> *Mike Branch*
>
> *White Rabbit Services, Inc.*
>
> *Certified QuickBooks ProAdvisor - QuickBooks Enterprise Solutions, Point of
> Sale*
>
> *Custom Software Development and Certified QuickBase Developer*
>
> *Phone/Text: 425.941.7648 <[hidden email]>*
>
> ** <[hidden email]>** [hidden email]*
>
> *Web: www.whiterabbitservices.com*
>
> *IM: [hidden email]*

--
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.