当前位置: 首页 > 知识库问答 >
问题:

使用ATG Rest完整API addItemToOrder错误

龚苏燕
2023-03-14

正如问题所提示的:ATG Rest完整API addItemToOrder不工作

我已经创建了一个组织并在其中添加了用户null指针Expeption已被清除,但是,现在新的错误开始出现在下面是服务器错误

**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler   <?xml version="1.0" encoding="UTF-8" standalone="no"?>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler   <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler     <S:Header>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       <sbh:ServerDetermine xmlns:sbh="http://siebel.com/webservices">SessionType</sbh:ServerDetermine>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       <sbh:LangCode xmlns:sbh="http://siebel.com/webservices">ENU</sbh:LangCode>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       <sbh:Locale xmlns:sbh="http://siebel.com/webservices">ENU</sbh:Locale>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       <sbh:UsernameToken xmlns:sbh="http://siebel.com/webservices">SADMIN</sbh:UsernameToken>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       <sbh:PasswordText xmlns:sbh="http://siebel.com/webservices">SADMIN</sbh:PasswordText>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler     </S:Header>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler     <S:Body>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       <ns2:CheckQuoteEligibilityCompatibility_Input xmlns="http://siebel.com/OrderManagement/Quote/Data" xmlns:ns2="http://siebel.com/OrderManagement/Quote/PSP" xmlns:ns3="http://siebel.com/OrderManagement/Quote/Data/ProjectedAsset">
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler         <ns2:PickMode>Pre-Pick</ns2:PickMode>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler         <ns3:ListOfAsset/>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler         <ns2:PSPMode>External PDS Quote</ns2:PSPMode>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler         <ListOfQuote>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler           <Quote>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             <Id>144844588</Id>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             <ListOfQuoteItem>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             <QuoteItem>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             <InclusiveEligibilityFlag>N</InclusiveEligibilityFlag>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             <Id>290257599</Id>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             <ProductId>1-18CKW</ProductId>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             </QuoteItem>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler             </ListOfQuoteItem>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler           </Quote>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler         </ListOfQuote>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler       </ns2:CheckQuoteEligibilityCompatibility_Input>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler     </S:Body>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler   </S:Envelope>
**** debug  Fri Jul 22 09:30:45 EDT 2016    1469194245004   /atg/siebel/integration/LogMessageHandler   
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler --- com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html;charset=UTF-8 Supported ones are: [text/xml]
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:319)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:151)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:290)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:277)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:124)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:118)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.client.Stub.process(Stub.java:272)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:153)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:115)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.proxy.$Proxy90.checkQuoteEligibilityCompatibility(Unknown Source)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at java.lang.reflect.Method.invoke(Method.java:606)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at com.sun.proxy.$Proxy91.checkQuoteEligibilityCompatibility(Unknown Source)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at atg.siebel.catalog.SiebelCatalogTools.callEligibilityCompatabilityWebService(SiebelCatalogTools.java:3649)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at atg.siebel.catalog.SiebelCatalogTools.checkProductEligibility(SiebelCatalogTools.java:3465)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at atg.siebel.validation.SiebelValidator.validateProductEligibility(SiebelValidator.java:149)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at atg.siebel.order.purchase.SiebelCartModifierFormHandler.preAddItemToOrder(SiebelCartModifierFormHandler.java:569)
**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler     at atg.commerce.order.purchase.CartModifierFormHandler.handleAddItemToOrder(CartModifierFormHandler.java:3035)

工作流程

添加到购物车[POST方法]

Content-Type:Application/JSON

http://ip:port/rest/model/atg/commerce/order/purche/cartmodifieractor/additemtoorder

Input:
{
     "_dynSessConf":"2956331551008735411",
     "catalogRefIds" : "sku70157",
     "productId": "1-18CKW",
     "quantity":1
}

Output:
{
  "formError": true,
  "formExceptions": [
    {
      "localizedMessage": "Unable to process the request currently. Please try again after some time",
      "errorCode": "atg.droplet.DropletException"
    }
  ],
  "concurrentUpdate": false
}

服务器日志

**** Error  Fri Jul 22 09:30:48 EDT 2016    1469194248987   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-2/atg/commerce/order/purchase/CartModifierFormHandler --- com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html;charset=UTF-8 Supported ones are: [text/xml]

添加到购物车[POST方法]

内容类型:text/xml

http://ip:port/rest/model/atg/commerce/order/purche/cartmodifieractor/additemtoorder

Input:
{
     "_dynSessConf":"2956331551008735411",
     "catalogRefIds" : "sku70157",
     "productId": "1-18CKW",
     "quantity":1
}

Output:
Your session expired due to inactivity.

服务器日志

**** Warning    Fri Jul 22 09:39:13 EDT 2016    1469194753357   /atg/dynamo/servlet/pagecompile/DAFDropletEventServlet  Missing session confirmation number: Request URI: /rest/model/atg/commerce/order/purchase/CartModifierActor/addItemToOrder

共有1个答案

昌琪
2023-03-14

您得到的错误不是因为您的请求使用了不正确的content-type,而是因为您从SOAP调用的端点返回的响应返回了HTML响应(很可能是404错误响应)。您需要使用soapui等工具确认您试图连接到的端点是否实际有效,并将您在debug语句中生成的soapenvelope传递给端点,然后确认响应。

 类似资料:
  • 我只是面临一个我自己无法解决的小问题。我试图在BorderPane中放置一个vBox,其中包括一个TextField和一个HTML-Editor,但是没有使用全部空间。另一个问题是,如果我收缩窗口,html-editor与我的左侧选项窗口重叠。

  • 我试图整理一系列的意大利面条代码从Arduino项目处理wifi, mqtt和SPIFF存储配置和我发现的最简单的解决方案是有一个基类,其中包含指向子类的指针,每个子类都有指向父类的指针类,并在需要时可以调用基类及其指向对象的指针。 在这个SSCCE中,我有两个类A和B,其中B包含在A中,需要时可以访问A的方法。 尽管我有一个: gcc-c a. c-o a. o gcc-c b. c-o b.

  • 我目前正在学习如何使用Maven构建我用Java编写的项目。以前,我只使用来编译我的项目,我已经习惯了它产生的错误消息。我尝试使用和手动编译以下错误的测试程序: 产生: 但是< code > mvn compiler 会产生这个结果(在一堆其他堆栈跟踪和输出中): 后者不如第一条错误消息有用,并且它不包含来自的完整错误消息。我尝试过使用和,但错误报告完全相同,只是周围有更多噪音。 如何从Maven

  • 我正在刮网页使用JSoup库通过选择类属性,其中包含"nav"字符串。 这是获取网站超文本标记语言的代码: 正如您所看到的,id=“varPreviewMenu”的ul元素包含Jsoup检索到的HTML不包含的li元素。 我怎样才能得到那些元素?

  • 我刚刚开始开发一个Django博客,并遵循这个youtube教程-https://www.youtube.com/watch?v=7rgph8en0Jc 我正在使用Django 1.6.6。 每次我试图在管理中添加条目,我都会得到这个错误。谢谢你的帮助! 环境: Django版本:1.6.6 Python版本:2.7.8安装的应用程序:('Django.contrib.admin','Django

  • 问题内容: 我的目标是在从链接读取href属性时始终获取相同的字符串(在我的情况下为URI)。举例:假设认为,一个HTML文件,它有一个像somany链接 ,但基本域是http://www.domainname.com/index.html 但基本域是http://www.domainname.com/dit/index.html 如何我可以正确获取所有链接意味着完整链接包括域名吗? 我如何在Ja