You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Christoffer Munck <cm...@2proceed.com> on 2007/09/19 23:35:13 UTC
Creating a .net webservice.
Hi'
I have tried to create consume a webservice like:
http://myaddress.com:8080/webtools/control/SOAPService/purchasing.createSupplier?wsdl
Here's a snippet
<wsdl:message name="purchasing.createSupplierRequest">
<wsdl:part name="groupName" type="xsd:string" />
<wsdl:part name="primaryEmail" type="xsd:string" />
<wsdl:part name="primaryWebUrl" type="xsd:string" />
</wsdl:message>
I've noticed a native .net webservice returns something like this:
- <s:element name="MailBox">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SiteID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Session_id" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ShowMailBox" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderBy" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
I would like to be able to consume the website so I can say something like this:
com._2proceed.purchasingcreateSupplier p = new
webOfBizExample.com._2proceed.purchasingcreateSupplier();
p.createSupplier("Name", "another name", "...");
Does anyone have experience in consuming the webservices from .net an VS?
Help is appriciated.
Best regards
Christoffer Munck
Re: Creating a .net webservice.
Posted by Jacques Le Roux <ja...@les7arts.com>.
http://www.nabble.com/web-services-and-Ofbiz-tf3996188.html#a11349563
Jacques
De : "Christoffer Munck" <cm...@2proceed.com>
> Hi'
> I have tried to create consume a webservice like:
> http://myaddress.com:8080/webtools/control/SOAPService/purchasing.createSupplier?wsdl
>
> Here's a snippet
> <wsdl:message name="purchasing.createSupplierRequest">
> <wsdl:part name="groupName" type="xsd:string" />
> <wsdl:part name="primaryEmail" type="xsd:string" />
> <wsdl:part name="primaryWebUrl" type="xsd:string" />
> </wsdl:message>
>
> I've noticed a native .net webservice returns something like this:
>
> - <s:element name="MailBox">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="SiteID" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="Session_id" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="ShowMailBox" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="OrderBy" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
>
>
> I would like to be able to consume the website so I can say something like this:
>
> com._2proceed.purchasingcreateSupplier p = new
> webOfBizExample.com._2proceed.purchasingcreateSupplier();
> p.createSupplier("Name", "another name", "...");
>
> Does anyone have experience in consuming the webservices from .net an VS?
>
> Help is appriciated.
>
> Best regards
>
>
> Christoffer Munck
>
Re: Creating a .net webservice.
Posted by Christoffer Munck <cm...@2proceed.com>.
I michael, thanks for the reply.
I'ts option 2, and yes it's complex types that I can't figure out to make work.
But I got some other gret links from Jacques, which will help me
getting startet with it.
Best regards
Christoffer
On 9/20/07, Michael Imhof <mi...@nowhow.ch> wrote:
>
> Hi Christoffer,
>
> I can't figure out which direction your problem goes:
> 1.Calling a .NET SOAP service from OFBIZ?
> 2.Calling a OFBIZ SOAP service from .NET?
>
> To the first case I got no experience.
> We're using the second case. That means we:
> * Generate WSDL's out of OFBIZ (even with complex types).
> * Our clients are building .NET & C++ stubs out of this wsdl's and calling
> the OFBIZ services
>
> Michael
>
>
> Christoffer Munck wrote:
> >
> > Hi'
> > I have tried to create consume a webservice like:
> > http://myaddress.com:8080/webtools/control/SOAPService/purchasing.createSupplier?wsdl
> >
> > Here's a snippet
> > <wsdl:message name="purchasing.createSupplierRequest">
> > <wsdl:part name="groupName" type="xsd:string" />
> > <wsdl:part name="primaryEmail" type="xsd:string" />
> > <wsdl:part name="primaryWebUrl" type="xsd:string" />
> > </wsdl:message>
> >
> > I've noticed a native .net webservice returns something like this:
> >
> > - <s:element name="MailBox">
> > - <s:complexType>
> > - <s:sequence>
> > <s:element minOccurs="0" maxOccurs="1" name="SiteID" type="s:string" />
> > <s:element minOccurs="0" maxOccurs="1" name="Session_id" type="s:string"
> > />
> > <s:element minOccurs="0" maxOccurs="1" name="ShowMailBox"
> > type="s:string" />
> > <s:element minOccurs="0" maxOccurs="1" name="OrderBy" type="s:string" />
> > </s:sequence>
> > </s:complexType>
> > </s:element>
> >
> >
> > I would like to be able to consume the website so I can say something like
> > this:
> >
> > com._2proceed.purchasingcreateSupplier p = new
> > webOfBizExample.com._2proceed.purchasingcreateSupplier();
> > p.createSupplier("Name", "another name", "...");
> >
> > Does anyone have experience in consuming the webservices from .net an VS?
> >
> > Help is appriciated.
> >
> > Best regards
> >
> >
> > Christoffer Munck
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Creating-a-.net-webservice.-tf4483952.html#a12791718
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
Re: Creating a .net webservice.
Posted by Michael Imhof <mi...@nowhow.ch>.
Hi Christoffer,
I can't figure out which direction your problem goes:
1.Calling a .NET SOAP service from OFBIZ?
2.Calling a OFBIZ SOAP service from .NET?
To the first case I got no experience.
We're using the second case. That means we:
* Generate WSDL's out of OFBIZ (even with complex types).
* Our clients are building .NET & C++ stubs out of this wsdl's and calling
the OFBIZ services
Michael
Christoffer Munck wrote:
>
> Hi'
> I have tried to create consume a webservice like:
> http://myaddress.com:8080/webtools/control/SOAPService/purchasing.createSupplier?wsdl
>
> Here's a snippet
> <wsdl:message name="purchasing.createSupplierRequest">
> <wsdl:part name="groupName" type="xsd:string" />
> <wsdl:part name="primaryEmail" type="xsd:string" />
> <wsdl:part name="primaryWebUrl" type="xsd:string" />
> </wsdl:message>
>
> I've noticed a native .net webservice returns something like this:
>
> - <s:element name="MailBox">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="SiteID" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="Session_id" type="s:string"
> />
> <s:element minOccurs="0" maxOccurs="1" name="ShowMailBox"
> type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="OrderBy" type="s:string" />
> </s:sequence>
> </s:complexType>
> </s:element>
>
>
> I would like to be able to consume the website so I can say something like
> this:
>
> com._2proceed.purchasingcreateSupplier p = new
> webOfBizExample.com._2proceed.purchasingcreateSupplier();
> p.createSupplier("Name", "another name", "...");
>
> Does anyone have experience in consuming the webservices from .net an VS?
>
> Help is appriciated.
>
> Best regards
>
>
> Christoffer Munck
>
>
--
View this message in context: http://www.nabble.com/Creating-a-.net-webservice.-tf4483952.html#a12791718
Sent from the OFBiz - User mailing list archive at Nabble.com.