on 2021 Apr 16 5:59 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Resolved the issue, Need to pass Rolecode to create the account as Prospect.
Thanks again for the Help.
Best regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh,
Thanks so much this is really helpful.
We used the sample code and the SOAP output states successful (as below) but in C4C we don't see any Webservice message either success or failure and even account say account (1020100 ) does not exist , Point to note is that connection to C4C does exist to confirm the same when we don't give password it gives error.
So connection perspective seems all good and SOAP Output perspective seems all good and based on below output don't understand why we don't see successful webservice message in C4C and subsequently the account - 1020100 is not available in C4C.
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header/>
<env:Body>
<n0:CustomerBundleMaintainConfirmation_sync_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:LQX:/1SAI/TAE6F3228CC6D723FF1823E:804">
<Customer>
<ReferenceObjectNodeSenderTechnicalID></ReferenceObjectNodeSenderTechnicalID>
<ChangeStateID>20210417143030.5449300</ChangeStateID>
<InternalID>1020100 </InternalID>
<UUID>00163ead-c00a-1edb-a7f1-2ebf9a14a791</UUID>
</Customer>
<Log/>
</n0:CustomerBundleMaintainConfirmation_sync_V1>
</env:Body>
</env:Envelope>
Thanks again for the needful.
Best Regards
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Thanks so much for your revert.
Actually i am doing a prototype for creation of prospect in C4C and i am really unsure what actioncode needs to be passed also there are multiple action codes available in WSDL.
can you please help what are the parameters that need to be passed for successful prospect creation..
Thanks for the needful.
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
What is the action code you're passing? Could you share your sample payload?
Regards,
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.