问题描述
我正在尝试将我的java代码从使用v5.1 API转换为v6 API。
我能够使用CustomerManagement服务和管理服务来检索配额和帐户列表,但我在尝试时遇到错误访问报告服务。
我甚至只是使用示例Java代码下载报告,只是将其更改为使用有效帐户ID,但我仍然无法使其工作。
这里的错误我得到:
AxisFault
faultCode:{http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher}InternalServiceFault
faultSubcode:
faultString:由于内部错误,服务器无法处理请求。 有关错误的更多信息,请在服务器上启用IncludeExceptionDetailInFaults(来自ServiceBehaviorAttribute或来自& lt; serviceDebug& gt;配置行为),以便将异常信息发送回客户端,或者根据要求启用跟踪Microsoft .NET Framework 3.0 SDK文档并检查服务器跟踪日志。
faultActor:
faultNode:
faultDetail:
;    {http://xml.apache.org/axis/}stackTrace:由于内部错误,服务器无法处理请求。 有关错误的更多信息,请在服务器上启用IncludeExceptionDetailInFaults(来自ServiceBehaviorAttribute或来自& lt; serviceDebug& gt;配置行为),以便将异常信息发送回客户端,或者根据要求启用跟踪Microsoft .NET Framework 3.0 SDK文档并检查服务器跟踪日志。
在org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
在org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
在org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
在weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
在weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
在weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
在weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
在weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
在javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
在org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
在org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
在org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
在org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
在org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
在org.apache.axis.client.Call.invokeEngine(Call.java:2784)
在org.apache.axis.client.Call.invoke(Call.java:2767)
在org.apache.axis.client.Call.invoke(Call.java:2443)
在org.apache.axis.client.Call.invoke(Call.java:2366)
在org.apache.axis.client.Call.invoke(Call.java:1812)
在com.microsoft.adcenter.v6.BasicHttpBinding_IReportingServiceStub.submitGenerateReport(BasicHttpBinding_IReportingServiceStub.java:1085)
在com.edmunds.adcenter.client.ReportServiceClientV6.main(ReportServiceClientV6.java:205)
{http://xml.apache.org/axis/}hostname:ttruong-t5400
由于内部错误,服务器无法处理请求。 有关错误的更多信息,请在服务器上启用IncludeExceptionDetailInFaults(来自ServiceBehaviorAttribute或来自< serviceDebug>配置行为),以便将异常信息发送回客户端,或者根据Microsoft .NET打开跟踪Framework 3.0 SDK文档并检查服务器跟踪日志。
在org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
在org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
在org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
在weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
在weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
在weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
在weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
在weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
在javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
在org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
在org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
在org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
在org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
在org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
在org.apache.axis.client.Call.invokeEngine(Call.java:2784)
在org.apache.axis.client.Call.invoke(Call.java:2767)
在org.apache.axis.client.Call.invoke(Call.java:2443)
在org.apache.axis.client.Call.invoke(Call.java:2366)
在org.apache.axis.client.Call.invoke(Call.java:1812)
在com.microsoft.adcenter.v6.BasicHttpBinding_IReportingServiceStub.submitGenerateReport(BasicHttpBinding_IReportingServiceStub.java:1085)
在com.edmunds.adcenter.client.ReportServiceClientV6.main(ReportServiceClientV6.java:205)
Java结果:-1
有人可以帮忙。
谢谢
I am trying to convert my java code from using v5.1 API to v6 API.
I was able to use the CustomerManagement Service and Administration Service to retreive Quota and Account Lists, but I got errors while trying to access the Report Serive.
I even just take the sample Java code for downloading the Report and just changed it to use the valid account Ids, but I still could not get it working.
Here the errors that i got:
AxisFault
faultCode: {http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher}InternalServiceFault
faultSubcode:
faultString: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
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 weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
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.microsoft.adcenter.v6.BasicHttpBinding_IReportingServiceStub.submitGenerateReport(BasicHttpBinding_IReportingServiceStub.java:1085)
at com.edmunds.adcenter.client.ReportServiceClientV6.main(ReportServiceClientV6.java:205)
{http://xml.apache.org/axis/}hostname:ttruong-t5400
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
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 weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:898)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:644)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
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.microsoft.adcenter.v6.BasicHttpBinding_IReportingServiceStub.submitGenerateReport(BasicHttpBinding_IReportingServiceStub.java:1085)
at com.edmunds.adcenter.client.ReportServiceClientV6.main(ReportServiceClientV6.java:205)
Java Result: -1
Could someone please help.
thanks
推荐答案
这篇关于使用Java的ReportService V6问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!