cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Manage Accounts Webservice gives error and does not create an Account

vijaybtvbd
Explorer
0 Kudos
886

Hi All,

We utilized a standard webservice "Manage Accounts" to create an account in C4C from external websites.

As part of testing while we run the WSDL from Soap UI we get the following error in C4C Webservice messaging.

"The value ? is not a valid UUID in the format "hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh"."

we tried passing the UUID where ever the UUID is there in WSDL as above format but we still get this error.

Any insights on this please.

Thank you

View Entire Topic
former_member226
Employee
Employee
0 Kudos

Hi,

Why do you need to pass any UUID for the creation of an account via SOAP service? UUID are technical should be generated by SAP system upon successful processing.

For e.g. if you want to create a new prospect of type person then the following should work:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:CustomerBundleMaintainRequest_sync_V1>
         <Customer actionCode="01">
            <ProspectIndicator>true</ProspectIndicator>
            <CategoryCode>1</CategoryCode>
            <Person>
               <GivenName>SOAP</GivenName>
               <FamilyName>API</FamilyName>
               <BirthDate>2008-10-31</BirthDate>
            </Person>
         </Customer>
      </glob:CustomerBundleMaintainRequest_sync_V1>
   </soapenv:Body>
</soapenv:Envelope>

OR in case of prospect organisation you can simply use following paylaod with minimum fields:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:CustomerBundleMaintainRequest_sync_V1>
         <Customer actionCode="01">
            <ProspectIndicator>true</ProspectIndicator>
            <CategoryCode>2</CategoryCode>
            <Organisation>
               <FirstLineName>SOAP</FirstLineName>
               <SecondLineName>Company</SecondLineName>
            </Organisation>
         </Customer>
      </glob:CustomerBundleMaintainRequest_sync_V1>
   </soapenv:Body>
</soapenv:Envelope>

Please also check https://blogs.sap.com/2016/05/11/getting-started-with-c4c-web-services-2/ where thet explain the action code to be used alongside payload formation for the service.