Skip to main content
Nintex Community Menu Bar

Put Operation Error when using REST Service Broker

  • March 26, 2017
  • 1 reply
  • 12 views
  • Translate

Forum|alt.badge.img+2

When using the REST Service Broker with a Swagger 2.0 definition, the put operation is failing, while the get operation is successful. Testing the put operation in the Swagger Editor, both operations are successful.

 

Error:

13617iDAA08BF452D40F08.png

 

Order Data:

[  {    "orderNumber": "11379001",    "customerNumber": "022547099000",    "customerName": "SomeCustomer",    "customerBillToStreetAddress1": "123 Main Street",    "customerBillToStreetAddress2": "Suite 100",    "customerBillToCity": "Phoenix",    "customerBillToState": "AZ",    "customerBillToZip": "85001",    "customerShipToStreetAddress1": "500 S 1st Street",    "customerShipToStreetAddress2": "Suite 200",    "customerShipToCity": "Fresno",    "customerShipToState": "CA",    "customerShipToZip": "93650"  }]
Did this topic help you find an answer to your question?

Forum|alt.badge.img+1

Jason, it looks like you are not serializing the OrderData first before calling the PutOrderNumber method. You can't just add your own json data, it needs to be serialized by K2 first.

 

Select the "Serialize" method and enter all of the order data info in and execute. Take the output of that and use in the PutOrderNumber method.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings