下面的代码似乎是命名空间中的元素“services”中的一个问题urn:connectship-com:ampcore'的内容不完整。可能元素的列表应为命名空间中的“服务”。获取上述错误
package com.connectship.ampcore;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Request to rate a list of packages with one or more services.
*
* <p>Java class for RateRequest complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="RateRequest">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="services" type="{urn:connectship-com:ampcore}ServiceList"/>
* <element name="defaults" type="{urn:connectship-com:ampcore}DataDictionary"/>
* <element name="packages" type="{urn:connectship-com:ampcore}DataDictionaryList"/>
* <element name="sortType" type="{urn:connectship-com:ampcore}enumItem" minOccurs="0"/>
* </sequence>
* <attribute ref="{urn:connectship-com:ampcore}preProcess"/>
* <attribute ref="{urn:connectship-com:ampcore}postProcess"/>
* <attribute ref="{urn:connectship-com:ampcore}locale"/>
* <attribute ref="{urn:connectship-com:ampcore}asyncCorrelationData"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RateRequest", propOrder = {
"services",
"defaults",
"packages",
"sortType"
})
public class RateRequest {
@XmlElement(required = true)
protected ServiceList services;
@XmlElement(required = true)
protected DataDictionary defaults;
@XmlElement(required = true)
protected DataDictionaryList packages;
protected String sortType;
@XmlAttribute(name = "preProcess", namespace = "urn:connectship-com:ampcore")
protected String preProcess;
@XmlAttribute(name = "postProcess", namespace = "urn:connectship-com:ampcore")
protected String postProcess;
@XmlAttribute(name = "locale", namespace = "urn:connectship-com:ampcore")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String locale;
@XmlAttribute(name = "asyncCorrelationData", namespace = "urn:connectship-com:ampcore")
protected String asyncCorrelationData;
/**
* Gets the value of the services property.
*
* @return
* possible object is
* {@link ServiceList }
*
*/
public ServiceList getServices() {
return services;
}
/**
* Sets the value of the services property.
*
* @param value
* allowed object is
* {@link ServiceList }
*
*/
public void setServices(ServiceList value) {
this.services = value;
}
/**
* Gets the value of the defaults property.
*
* @return
* possible object is
* {@link DataDictionary }
*
*/
public DataDictionary getDefaults() {
return defaults;
}
/**
* Sets the value of the defaults property.
*
* @param value
* allowed object is
* {@link DataDictionary }
*
*/
public void setDefaults(DataDictionary value) {
this.defaults = value;
}
/**
* Gets the value of the packages property.
*
* @return
* possible object is
* {@link DataDictionaryList }
*
*/
public DataDictionaryList getPackages() {
return packages;
}
/**
* Sets the value of the packages property.
*
* @param value
* allowed object is
* {@link DataDictionaryList }
*
*/
public void setPackages(DataDictionaryList value) {
this.packages = value;
}
/**
* Gets the value of the sortType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSortType() {
return sortType;
}
/**
* Sets the value of the sortType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSortType(String value) {
this.sortType = value;
}
/**
* Gets the value of the preProcess property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPreProcess() {
return preProcess;
}
/**
* Sets the value of the preProcess property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPreProcess(String value) {
this.preProcess = value;
}
/**
* Gets the value of the postProcess property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPostProcess() {
return postProcess;
}
/**
* Sets the value of the postProcess property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPostProcess(String value) {
this.postProcess = value;
}
/**
* Gets the value of the locale property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLocale() {
return locale;
}
/**
* Sets the value of the locale property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLocale(String value) {
this.locale = value;
}
/**
* Gets the value of the asyncCorrelationData property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAsyncCorrelationData() {
return asyncCorrelationData;
}
/**
* Sets the value of the asyncCorrelationData property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAsyncCorrelationData(String value) {
this.asyncCorrelationData = value;
}
}
下面是我在控制台上遇到的错误。请帮我摆脱困境。
RatingServiceEJB-Error getting rate response from connectship : com.connectship.ampcore.ErrorMessage: The element 'services' in namespace 'urn:connectship-com:ampcore' has incomplete content. List of possible elements expected: 'service' in namespace 'urn:connectship-com:ampcore'.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_202]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_202]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_202]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_202]
at org.apache.cxf.interceptor.ClientFaultConverter.processFaultDetail(ClientFaultConverter.java:175)
at org.apache.cxf.interceptor.ClientFaultConverter.handleMessage(ClientFaultConverter.java:78)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1513)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1318)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
at com.sun.proxy.$Proxy158.rate(Unknown Source)
at com.mst.csi.service.RateService.getRates(RateService.java:24) [ConnectShipInterface-1.0-dev.jar:]
at com.mst.csi.service.RateService.rateLpn(RateService.java:55) [ConnectShipInterface-1.0-dev.jar:]
at com.macys.mst.wms.atlas.opt.rating.service.RatingServiceEJB.getRates(RatingServiceEJB.java:1236) [classes:]
at
暂无答案!
目前还没有任何答案,快来回答吧!