AnsweredAssumed Answered

Web Services API problem - HttpContentDeliveryReportService

Question asked by Kin Sang Lai Employee on Nov 20, 2015
Latest reply on Jan 6, 2016 by B-C-ME2SR3

Does anyone hit this errors ?

 

1) First error:

 

requesting getCPCodes()

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

faultSubcode:

faultString: ?? There are 0 (zero) CPCodes for given Username

faultActor:

faultNode:

faultDetail:

  {http://xml.apache.org/axis/}exceptionName:com.akamai.aws.util.AWSFault

  {http://xml.apache.org/axis/}hostname:prod-portal-ws03.extranet.akamai.com

 

?? There are 0 (zero) CPCodes for given Username

  at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

  at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

  at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1783)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2970)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)

  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)

  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)

  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)

  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)

  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)

  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)

  at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

  at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

  at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

  at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

  at org.apache.axis.client.Call.invoke(Call.java:2767)

  at org.apache.axis.client.Call.invoke(Call.java:2443)

  at org.apache.axis.client.Call.invoke(Call.java:2366)

  at org.apache.axis.client.Call.invoke(Call.java:1812)

  at com.akamai.control.HttpContentDeliveryReportService_xsd.HttpContentDeliveryReportServiceStub.getCPCodes(HttpContentDeliveryReportServiceStub.java:987)

  at HttpContentDeliveryClient.<init>(HttpContentDeliveryClient.java:90)

  at HttpContentDeliveryClient.main(HttpContentDeliveryClient.java:47)

Exception! -- ?? There are 0 (zero) CPCodes for given Username


2) Second Error:

 

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

faultSubcode:

faultString: akaawsdt:NoPermission:sample-ws-user1 is not allowed to call HttpContentDeliveryReportService::getURLForCPCode

faultActor:

faultNode:

faultDetail:

  {http://xml.apache.org/axis/}exceptionName:com.akamai.aws.util.AWSFault

  {http://xml.apache.org/axis/}hostname:prod-portal-ws01.extranet.akamai.com

 

akaawsdt:NoPermission:iqiyi-test-ws-user1 is not allowed to call HttpContentDeliveryReportService::getURLForCPCode

  at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

  at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

  at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1783)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2970)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)

  at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)

  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)

  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)

  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)

  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)

  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)

  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)

  at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

  at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

  at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

  at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

  at org.apache.axis.client.Call.invoke(Call.java:2767)

  at org.apache.axis.client.Call.invoke(Call.java:2443)

  at org.apache.axis.client.Call.invoke(Call.java:2366)

  at org.apache.axis.client.Call.invoke(Call.java:1812)

  at com.akamai.control.HttpContentDeliveryReportService_xsd.HttpContentDeliveryReportServiceStub.getURLForCPCode(HttpContentDeliveryReportServiceStub.java:1689)

  at HttpContentDeliveryClient.<init>(HttpContentDeliveryClient.java:185)

  at HttpContentDeliveryClient.main(HttpContentDeliveryClient.java:47)


I'm using this Java Client

https://control.akamai.com/portal/content/webservices/docs/wsdls.jsp

https://control.akamai.com/dl/webservices/java/httpcontentdeliveryClient.zip

 

The sample code works well on Akamai Internal account. However, when I'm testing it using the ws account under customer account, it throw this error.

 

Anyone have some clue on this ?

Outcomes