Creating a .net webservice.

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

Creating a .net webservice.

Christoffer
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
Reply | Threaded
Open this post in threaded view
|

Re: Creating a .net webservice.

Jacques Le Roux
Administrator
http://www.nabble.com/web-services-and-Ofbiz-tf3996188.html#a11349563

Jacques

De : "Christoffer Munck" <[hidden email]>

> 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
>
Reply | Threaded
Open this post in threaded view
|

Re: Creating a .net webservice.

Jacques Le Roux
Administrator
In reply to this post by Christoffer
Also http://www.nabble.com/Using-SOAP-complex-types-with-OfBiz-tf3300429.html#a9180865

> http://www.nabble.com/web-services-and-Ofbiz-tf3996188.html#a11349563
>
> Jacques
>
> De : "Christoffer Munck" <[hidden email]>
> > 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
> >
Reply | Threaded
Open this post in threaded view
|

Re: Creating a .net webservice.

Michael Imhof
In reply to this post by Christoffer
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
Reply | Threaded
Open this post in threaded view
|

Re: Creating a .net webservice.

Christoffer
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 <[hidden email]> 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.
>
>