Which Release.revision are you using (see bottom of backend pages) ?

Jacques

From: "devalpatel" <[email protected]>
Hi Paul,

I am commited to ofBiz. And, responsible for the integration betweeb ofBiz and 
.Net application.

I just had made successful call from .Net to the ofBiz service.

But, when my ofBiz service sends the service call to .Net back, the .Net receives the response as void. And, the result is null at .Net side.

In short, Now the (.Net[as web client] --> ofBiz[as webservice server])communication occurs, but as a result the .Net receives null value eventhough successful return of ofBiz call.

One thing.... my ofBiz webservice method is searchHelloPerson().

But, after generatting the client stub in .Net I am getting below method :
void CallsearchHelloPerson(ref map)         instead of Map 
searchHelloPerson(ref map)

void CallsearchHelloPersonAsync(map)        instead of Map 
searchHelloPersonAsync(map)

Thats why I can not get the result as return value.

Thanks,

Deval

----- Original Message ----- From: Paul Foxworthy [via OFBiz]
 To: devalpatel
 Sent: Thursday, May 03, 2012 12:43 PM
 Subject: Re: how to use ofBiz service in .Net application?


 Hi Deval,

Assuming you're committed to .NET, I strongly recommend you use WCF. It's a fraction more complicated than just using a Web Service, and vastly more flexible. You could think of this issue as one example of that.

 Cheers

 Paul Foxworthy


   devalpatel wrote
   Hi Paul,

   Thanks for your help.

   We have .Net web site project. We are not using WCF.

   We have tried using the Add Web reference of ofBiz service in .Net. But it 
gives XML generation error.

   So, is there any other option to call ofBiz service successfully in c# .Net 
web application.

   Thanks,

   Deval

----- Original Message ----- From: Paul Foxworthy [via OFBiz]
     To: devalpatel
     Sent: Thursday, May 03, 2012 11:28 AM
     Subject: Re: how to use ofBiz service in .Net application?


     Hi Deval,

     .NET WCF can receive a Map from a SOAP service. In .NET terms it's a 
Dictionary.

     There's a nice discussion at 
http://www.request-response.com/blog/PermaLink,guid,ff5fab81-affb-4b2b-aa67-c80bdfc86cbd.aspx

     Cheers

     Paul Foxworthy


       devalpatel wrote
       Thanks for your suggestion Jacques.

I have reviewed the issues suggest by you. The issue https://issues.apache.org/jira/browse/OFBIZ-3299f contains the ModelService.java modification, which currently not available in the stable ofBiz 10.04 version.

After implementing the modification the ModelService class based on issue resolution, I am successfully able use the ofBiz service using SOAP and XML-RPC.

I would appreciate if you/anyone suggest, how to change a default return type pf ofBiz java service..i.e. instead of MAP, how to change the wrapper to return string as Return type of ofBiz services. Because it creates problem while accessing the ofBiz web-service in .Net app as Map is not supported there.

       Again Thanks a lot.

       Best regards,

       Deval
-- Coherent Software Australia Pty Ltd
     http://www.cohsoft.com.au/

     Bonsai ERP, the all-inclusive ERP system
     http://www.bonsaierp.com.au/




------------------------------------------------------------------------------
     If you reply to this email, your message will be added to the discussion 
below:
     
http://ofbiz.135035.n4.nabble.com/Re-how-to-use-ofBiz-service-in-Net-application-tp4580144p4605195.html
     To unsubscribe from Re: how to use ofBiz service in .Net application?, 
click here.
     NAML
-- Coherent Software Australia Pty Ltd
 http://www.cohsoft.com.au/

 Bonsai ERP, the all-inclusive ERP system
 http://www.bonsaierp.com.au/




------------------------------------------------------------------------------

 If you reply to this email, your message will be added to the discussion below:
 
http://ofbiz.135035.n4.nabble.com/Re-how-to-use-ofBiz-service-in-Net-application-tp4580144p4605288.html
 To unsubscribe from Re: how to use ofBiz service in .Net application?, click 
here.
 NAML

--
View this message in context: http://ofbiz.135035.n4.nabble.com/Re-how-to-use-ofBiz-service-in-Net-application-tp4580144p4605335.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to