Apache ofbiz Web Services calls a

Source: Internet
Author: User
Tags soap xmlns

Enable the Create user Web Services for ofbiz, and search for the article in front of me.

http://192.168.1.107:8080/webtools/control/SOAPService/createPersonAndUserLogin?wsdl
Make

Use the Eclipse Web Services Explorer to construct your own request body
http://127.0.0.1:49862/wse/wsexplorer/wsexplorer.jsp

<map-Map>
  <ns0:map-Entry>
    <ns0:map-Key>
      <ns0:std-string value= "CurrentPassword "/>
    </ns0:map-Key>
    <ns0:map-Value>
      <ns0:std-string value=" current "/>
    </ ns0:map-value>
  </ns0:map-Entry>
  <ns0:map-Entry>
    <ns0:map-Key>
      <ns0: Std-string value= "currentpasswordverify"/>
    </ns0:map-Key>
    <ns0:map-Value>
      <ns0 : std-string value= "current"/>
    </ns0:map-Value>
  </ns0:map-Entry>
  <ns0:map-entry >
    <ns0:map-Key>
      <ns0:std-string value= "Userloginid"/>
    </ns0:map-Key>
    <ns0:map-Value>
      <ns0:std-string value= "zzzz"/>
    </ns0:map-Value>
  </ns0: Map-entry>

</map-Map>

SOAP Requests:

<soapenv:envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0= "http// ofbiz.apache.org/service/"xmlns:xsd=" Http://www.w3.org/2001/XMLSchema "xmlns:xsi=" http://www.w3.org/2001/ Xmlschema-instance "> <soapenv:Body> <ns0:createPersonAndUserLogin> <map-Map> <ns0:ma p-entry> <ns0:map-Key> <ns0:std-string value= "CurrentPassword"/> </ns0:map-Key> &lt ;ns0:map-value> <ns0:std-string value= "current"/> </ns0:map-Value> </ns0:map-Entry> &lt ;ns0:map-entry> <ns0:map-Key> <ns0:std-string value= "currentpasswordverify"/> </ns0:map-ke y> <ns0:map-Value> <ns0:std-string value= "current"/> </ns0:map-Value> </ns0:map-en try> <ns0:map-Entry> <ns0:map-Key> <ns0:std-string value= "Userloginid"/> </ns0:map -key> <ns0:map-Value> <ns0:std-string Value= "zzzz"/> </ns0:map-Value> </ns0:map-Entry> </map-Map> &LT;/NS0:CREATEPERSONANDUSERLOGIN&G
  T </soapenv:Body> </soapenv:Envelope>

Soap Returns the result:


<soapenv:envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/" > <soapenv:Body> <creat
            Epersonanduserloginresponse xmlns= "http://ofbiz.apache.org/service/" > <map-Map> <map-Entry>
            <map-Key> <std-string value= "Responsemessage"/> </map-Key> <map-Value> <std-string value= "Success"/> </map-Value> </ma 
            p-entry> <map-Entry> <map-Key> <std-string value= "Newuserlogin"/> </map-Key> <map-Value> <eeval-userlogin createdstamp= "2016-10-18 0 6:56:53.933 "createdtxstamp=" 2016-10-18 06:56:53.465 "currentpassword=" $SHA $o60vewxuu0s$ Vnoxf3s6su-rlve20rqyzi4gfdy "lastupdatedstamp=" 2016-10-18 06:56:53.933 "lastupdatedtxstamp=" 2016-10-18 06:56:53.465 "partyid=" 10010 "userloginid=" zzzz "/> </map-value> </map-Entry> <map-Entry> <map-Key> <std-string val Ue= "PartyId"/> </map-Key> <map-Value> <std-string value= "10010"/ > </map-Value> </map-Entry> </map-Map> </createpersonanduserloginrespo

 Nse> </soapenv:Body> </soapenv:Envelope>

Test:
Log in with an increased user name Zzzz/current ofbiz e-commerce platform Http://xxxx:8080/ecommerce,happy shopping bar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.