Hi Alfredo,
Thanks for your mail.

Also once the component is ready, please do drop in a mail. It would be of
great help to me.

Assumption
Also i have question, with regard to SOAP based web services, its written
OfBiz supports simple types but not complex types, my understanding is that
complex types are custom objects, where as simple types include String,
Date, Double, etc....
Also my assumption is that OfBiz supports only String. it doesn't convert
the IN parameters to any other types.
Please correct me if i am wrong in the above statements.

Issue
Also i have attached few files, if you get time please help me with the
error and where i am going wrong.
I had exposed a service "createPerson" from ofbiz as a external service.
Service takes a list of fields and creates a Person in the DB. Few of the
fields of the Person are java.util.Date and java.lang.Double.

 Once I deploy the service, the WSDL file ( Attached : createPerson.wsdl )
is hosted within my localhost.

I use SOAP UI tool to simulate the SOAP request to send to the webservice.
Once I specify the wsdl location SOAP UI tool provides me with a template
request, I fill up the template request with values and send the request to
the web service ( Attached : SOAP_Request.xml )

In this case the server throws an error for every parameter that is not
String. (Attached: Error.log)

Any hints? am i doing something wrong with the SOAP request or its just that
OfBiz understands only String?


Regards

Ram

[email protected]


On Tue, Dec 16, 2008 at 8:42 AM, Alfredo Rueda <[email protected]
> wrote:

>
> Hello!
>
> You will not deploy party ofbiz services in axis. You will deploy in Axis2
> a
> simple wrapper that will call
> party ofbiz services in order to expose its methods via SOAP architecture.
>
> Regards,
>
> Alfredo
>
>
> raminbox wrote:
> >
> > Hi BJ,
> > Thanks a lot for your mail.
> >
> > But i am trying to expose PartyServices as a web service. in that case
> > what
> > is my option?
> > i cannot deploy party services in axis right? as its an integral part of
> > ofbiz?
> >
> >
> > also any work around avilable?
> >
> > regards
> > Ram.
> >
> > On Mon, Dec 15, 2008 at 12:15 PM, BJ Freeman <[email protected]>
> wrote:
> >
> >>
> >>
> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
> >> only documentation I find.
> >> remember ofbiz does not handle complex types, only simple.
> >>
> >> there has been many questions of soap but very little information.
> >> Please as you find answer add them to the link above.
> >>
> >> raminbox sent the following on 12/15/2008 7:38 AM:
> >> > Hi All,
> >> >
> >> > I am trying to make createPerson service an webservice, by stting
> >> > export=true.
> >> > org.ofbiz.party.party.PartyServices
> >> >
> >> > But i am not able to access the wsdl using
> >> > http://127.0.0.1:8080/webtools/control/SOAPService/createPerson?WSDL
> >> >
> >> > Its extremely urgent i get this working.
> >> >
> >> > please help me out
> >> >
> >> > regards
> >> > ram.
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/WSDL-issue-for-PartyServices.-tp21016026p21033300.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
 <soapenv:Header/>
 <soapenv:Body>
    <createPerson xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
       <partyId>3333</partyId>
       <salutation>Mr</salutation>
       <firstName>rrrrr</firstName>
       <middleName>aaaa</middleName>
       <lastName>dasdasdasd</lastName>
       <personalTitle>personalTitle</personalTitle>
       <suffix>suffix</suffix>
       <nickname>nickname</nickname>
       <firstNameLocal>local</firstNameLocal>
       <lastNameLocal>last</lastNameLocal>
       <memberId>11</memberId>
       <gender>male</gender>
       <birthDate>12/08/1982</birthDate>
       <height>6.2</height>
       <weight>70</weight>
       <mothersMaidenName>kan</mothersMaidenName>
       <maritalStatus>singkle</maritalStatus>
       <socialSecurityNumber>145-587-5555</socialSecurityNumber>
       <passportNumber>1546788</passportNumber>
       <passportExpireDate>12/08/2012</passportExpireDate>
       <totalYearsWorkExperience>9</totalYearsWorkExperience>
       <comments>asdasdasd</comments>
       <employmentStatusEnumId>?</employmentStatusEnumId>
       <residenceStatusEnumId>?</residenceStatusEnumId>
       <occupation>ssss</occupation>
       <yearsWithEmployer>3</yearsWithEmployer>
       <monthsWithEmployer>4</monthsWithEmployer>
       <statusId>?</statusId>
       <preferredCurrencyUomId>?</preferredCurrencyUomId>
       <description>?</description>
       <firstName>?</firstName>
       <lastName>?</lastName>
   </createPerson>
 </soapenv:Body>
</soapenv:Envelope>
  <?xml version="1.0" encoding="UTF8" ?> 
 <wsdl:definitions targetNamespace="http://www.ofbiz.org/service/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://www.ofbiz.org/service/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
 <wsdl:message name="createPersonResponse">
  <wsdl:part name="partyId" type="xsd:string" /> 
 </wsdl:message>
 <wsdl:message name="createPersonRequest">
	  <wsdl:part name="partyId" type="xsd:string" /> 
	  <wsdl:part name="salutation" type="xsd:string" /> 
	  <wsdl:part name="firstName" type="xsd:string" /> 
	  <wsdl:part name="middleName" type="xsd:string" /> 
	  <wsdl:part name="lastName" type="xsd:string" /> 
	  <wsdl:part name="personalTitle" type="xsd:string" /> 
	  <wsdl:part name="suffix" type="xsd:string" /> 
	  <wsdl:part name="nickname" type="xsd:string" /> 
	  <wsdl:part name="firstNameLocal" type="xsd:string" /> 
	  <wsdl:part name="lastNameLocal" type="xsd:string" /> 
	  <wsdl:part name="memberId" type="xsd:string" /> 
	  <wsdl:part name="gender" type="xsd:string" /> 
	  <wsdl:part name="birthDate" type="xsd:dateTime" /> 
	  <wsdl:part name="height" type="xsd:double" /> 
	  <wsdl:part name="weight" type="xsd:double" /> 
	  <wsdl:part name="mothersMaidenName" type="xsd:string" /> 
	  <wsdl:part name="maritalStatus" type="xsd:string" /> 
	  <wsdl:part name="socialSecurityNumber" type="xsd:string" /> 
	  <wsdl:part name="passportNumber" type="xsd:string" /> 
	  <wsdl:part name="passportExpireDate" type="xsd:dateTime" /> 
	  <wsdl:part name="totalYearsWorkExperience" type="xsd:double" /> 
	  <wsdl:part name="comments" type="xsd:string" /> 
	  <wsdl:part name="employmentStatusEnumId" type="xsd:string" /> 
	  <wsdl:part name="residenceStatusEnumId" type="xsd:string" /> 
	  <wsdl:part name="occupation" type="xsd:string" /> 
	  <wsdl:part name="yearsWithEmployer" type="xsd:double" /> 
	  <wsdl:part name="monthsWithEmployer" type="xsd:double" /> 
	  <wsdl:part name="statusId" type="xsd:string" /> 
	  <wsdl:part name="preferredCurrencyUomId" type="xsd:string" /> 
	  <wsdl:part name="description" type="xsd:string" /> 
	  <wsdl:part name="firstName" type="xsd:string" /> 
	  <wsdl:part name="lastName" type="xsd:string" /> 
  </wsdl:message>
 <wsdl:portType name="createPersonPortType">
 <wsdl:operation name="createPerson">
  <wsdl:input message="tns:createPersonRequest" /> 
  <wsdl:output message="tns:createPersonResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
 <wsdl:binding name="createPersonSoapBinding" type="tns:createPersonPortType">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; /> 
 <wsdl:operation name="createPerson">
  <soap:operation soapAction="" /> 
 <wsdl:input>
  <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://www.ofbiz.org/service/"; use="literal" /> 
  </wsdl:input>
 <wsdl:output>
  <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://www.ofbiz.org/service/"; use="literal" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
 <wsdl:service name="createPerson">
 <wsdl:port binding="tns:createPersonSoapBinding" name="createPersonPort">
  <soap:address location="http://localhost:8080/webtools/control/SOAPService"; /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

Reply via email to