cancel
Showing results for 
Search instead for 
Did you mean: 

SAP DI Server - Generating WSDL For DraftService using WSDLServiceGenerator getting Failed

rahuljain257
Participant
0 Kudos

Hello Team,

I am using B1WS 1.1 "WSDLGeneratorTool" to generate the wsdl files but its constantly getting failed for DraftsService Please find the request and response for your reference -

While Generating metadata for DraftsService Its getting failed - Failed to create Business Service

Request to Generate the WSDL File

<?xml version="1.0" encoding="UTF-16"?> 
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope/"> 
<env:Header> 
<SessionID>86E7CF12-285F-42D0-A1AA-FF2B057A9BF5</SessionID>
</env:Header> 
<env:Body> 
<dis:GetServiceMetadata xmlns:dis="http://www.sap.com/SBO/DIS"> 
<Service>DraftsService</Service> 
</dis:GetServiceMetadata>
</env:Body> 
</env:Envelope>

Response

<?xml version="1.0"?> 
<br> 
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> 
<br> 
<env:Body>
<br>
<env:Fault>
<br>
<env:Code>
<br>
<env:Value>env:Sender</env:Value>
<env:Subcode><env:Value>-1</env:Value>
<br></env:Subcode></env:Code><env:Reason>
<env:Text xml:lang="en">Failed to create Business Service</env:Text></env:Reason>
<env:Detail><br><Service>DraftsService</Service><br>
<Command>Add</Command>
<SessionID>EDBED807-F7DB-496D-89BD-D2D6D32C0DE3</SessionID>

</env:Detail><br></env:Fault><br></env:Body><br></env:Envelope><br>

24/01/2022  14:30:07  Response (Fault)

Accepted Solutions (1)

Accepted Solutions (1)

rahuljain257
Participant
0 Kudos

As per the response got from ankit.chauhan1 ji - The description of User Defined Table conflicts with the Drafts that comes with the system. To Resolve we need to modify the description of the user defined table.

Thank you again

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi rahul.jain257,

There appears to be an issue with the WSDLGeneratorTool. The exact same request works fine for me using DI Server:

Request:

<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope/">
  <env:Header>
    <SessionID>86E7CF12-285F-42D0-A1AA-FF2B057A9BF5</SessionID>
  </env:Header>
  <env:Body>
    <dis:GetServiceMetadata xmlns:dis="http://www.sap.com/SBO/DIS">
      <Service>DraftsService</Service>
    </dis:GetServiceMetadata>
  </env:Body>
</env:Envelope>

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

rahuljain257
Participant
0 Kudos

Thank You ankit.chauhan1 ji for your response.

The same wsdl tool works perfectly for the test database for the year old backup but for the production database its giving this error, I am clueless @ this moment where to look to fix this error.

Quick Update - I have re-downloaded the tool and check but still the same error.

regards

Rahul Jain

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi rahul.jain257,

What is the version of production database where the issue is happening for you?

Are you able to reproduce the issue in the production database using the DI Server (not B1WS)?

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

rahuljain257
Participant
0 Kudos

Hello Ankit ji,

Please find the response for your reference -

What is the version of production database where the issue is happening for you?

Response - 9.3 PL 13

Are you able to reproduce the issue in the production database using the DI Server (not B1WS)?

Response - Yes, getting the following error Failed to create Business Service

Request -

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><MsgHeader xmlns="http://www.sap.com/SBO/DIS"><SessionID>ACA74A41-944D-453A-9712-F4D0E424386A</SessionID><ServiceName>DraftsService</ServiceName></MsgHeader></soap:Header><soap:Body><Add xmlns="DraftsService"><Document xmlns="http://www.sap.com/SBO/DIS"><CardCode>60002096</CardCode><NumAtCard>Service Call No. 2021670670</NumAtCard><Comments>t</Comments><PaymentGroupCode>84</PaymentGroupCode><ContactPersonCode>9877</ContactPersonCode><Series>1223</Series><DocObjectCode>23</DocObjectCode><ShipToCode>D'Decor Home Store LLP</ShipToCode><DocumentsOwner>104</DocumentsOwner><PayToCode>D'Decor Home Store LLP</PayToCode><U_Region>North Region</U_Region><U_SerRepNo>2021670670</U_SerRepNo><U_Srrep_date>2022-01-24</U_Srrep_date><DocumentLines><DocumentLine><LineNum>0</LineNum><ItemCode>28528240</ItemCode><Quantity>1</Quantity><DiscountPercent>5</DiscountPercent><WarehouseCode>1001</WarehouseCode></DocumentLine></DocumentLines></Document></Add></soap:Body></soap:Envelope>

Response -

><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Sender</env:Value><env:Subcode><env:Value>-1</env:Value></env:Subcode></env:Code><env:Reason><env:Text xml:lang="en">Failed to create Business Service</env:Text></env:Reason><env:Detail><Service>DraftsService</Service><Command>Add</Command><SessionID>ACA74A41-944D-453A-9712-F4D0E424386A</SessionID></env:Detail></env:Fault></env:Body></env:Envelope>

regards

Rahul Jain