Hi Freeman,
The actual fault is this (I typed it in incorrectly, no excuse):
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException:
message part {http://www.company.com/sps/}artifactWithDefaultSPEntityRequest
was not recognized. (Does it exist in WSDL?)
Here is the whole WSDL
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.company.com/sps/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="higsps"
targetNamespace="http://www.company.com/sps/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.company.com/sps/">
<xsd:element name="artifactResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="spUrl" type="xsd:string" maxOccurs="1"
minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="artifactRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="nameId" type="xsd:string"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="spEntityId" type="xsd:string"
maxOccurs="1" minOccurs="0">
</xsd:element>
<xsd:element name="targetUrl" type="xsd:string"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="attributes"
type="tns:AttributeType" maxOccurs="unbounded"
minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="SpsFaultType">
<xsd:sequence>
<xsd:element name="message" type="xsd:string"
maxOccurs="1" minOccurs="0">
</xsd:element>
<xsd:element name="code" type="xsd:int"
maxOccurs="1" minOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AttributeType">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="value" type="xsd:string"
maxOccurs="1" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="artifactFault" type="tns:SpsFaultType">
</xsd:element>
<xsd:element name="artifactWithDefaultSpEntity">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="artifactWithDefaultSpEntityResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="spUrl " type="xsd:string"
maxOccurs="1" minOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="artifactWithDefaultSpEntityRequest"
type="tns:ArtifactWithDefaultSpEntityType">
</xsd:element>
<xsd:complexType name="ArtifactWithDefaultSpEntityType">
<xsd:sequence>
<xsd:element name="nameId" type="xsd:string"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="targetUrl" type="xsd:string"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="attributes"
type="tns:AttributeType" maxOccurs="unbounded"
minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="artifactWithDefaultSpEntityFault"
type="tns:SpsFaultType">
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="artifactRequest">
<wsdl:part element="tns:artifactRequest" name="parameters" />
</wsdl:message>
<wsdl:message name="artifactResponse">
<wsdl:part element="tns:artifactResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="artifactFault">
<wsdl:part name="parameters" element="tns:artifactFault"></wsdl:part>
</wsdl:message>
<wsdl:message name="artifactWithDefaultSpEntityRequest">
<wsdl:part name="parameters"
element="tns:artifactWithDefaultSpEntityRequest">
</wsdl:part>
</wsdl:message>
<wsdl:message name="artifactWithDefaultSpEntityResponse">
<wsdl:part name="parameters"
element="tns:artifactWithDefaultSpEntityResponse"></wsdl:part>
</wsdl:message>
<wsdl:message name="artifactWithDefaultSpEntityFault">
<wsdl:part name="parameters"
element="tns:artifactWithDefaultSpEntityFault"></wsdl:part>
</wsdl:message>
<wsdl:portType name="higsps">
<wsdl:operation name="artifact">
<wsdl:input message="tns:artifactRequest"/>
<wsdl:output message="tns:artifactResponse"/>
<wsdl:fault name="fault" message="tns:artifactFault"></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="artifactWithDefaultSpEntity">
<wsdl:input
message="tns:artifactWithDefaultSpEntityRequest"></wsdl:input>
<wsdl:output
message="tns:artifactWithDefaultSpEntityResponse"></wsdl:output>
<wsdl:fault name="fault"
message="tns:artifactWithDefaultSpEntityFault"></wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="higspsSOAP" type="tns:higsps">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="artifact">
<soap:operation soapAction="http://www.company.com/sps/artifact"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="artifactWithDefaultSpEntity">
<soap:operation
soapAction="http://www.company.com/sps/artifactWithDefaultSpEntity"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="sps">
<wsdl:port binding="tns:higspsSOAP" name="higspsSOAP">
<soap:address location="https://www.company.com/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
On 19 June 2013 00:14, Freeman Fang <[email protected]> wrote:
> Hi,
>> Message part (http::/www.company.com/sps/artifactWithDefaultSpEntityRequest
>> was not recognized, (Does is exist in WSDL?)
>
>
> This log is interesting, Message Part is a QName, the output of QName is
> "{" + namespaceURI + "}" + localPart
> if the namespace isn't NULL_NS_URI
> I don't see the expected "{" "}" in the log, what's the namespace for the
> message part in your wsdl? Also the local name start from "http::/" which is
> also weird to me.
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: @Freeman小屋
>
>
>
> On 2013-6-19, at 上午3:43, Aaron Stromas wrote:
>
>> Hello,
>>
>> I'm getting the a SOAP fault informing me that the message is note
>> recognized. Specifically,
>> Message part (http::/www.company.com/sps/artifactWithDefaultSpEntityRequest
>> was not recognized, (Does is exist in WSDL?) The WSDL does contain
>> message definition and was validated with the wsdlvalidator utility.
>> Any idea why am I getting this fault? The relevant WSDL excerpts
>> follow.
>>
>> <xsd:schema>
>> <wsdl:types>
>> ...
>> <xsd:element name="artifactWithDefaultSpEntityRequest"
>> type="tns:ArtifactWithDefaultSpEntityType">
>> </xsd:element>
>>
>> <xsd:complexType name="ArtifactWithDefaultSpEntityType">
>> <xsd:sequence>
>> <xsd:element name="nameId" type="xsd:string"
>> maxOccurs="1" minOccurs="1">
>> </xsd:element>
>> <xsd:element name="targetUrl" type="xsd:string"
>> maxOccurs="1" minOccurs="1">
>> </xsd:element>
>> <xsd:element name="attributes"
>> type="tns:AttributeType" maxOccurs="unbounded"
>> minOccurs="0"></xsd:element>
>> </xsd:sequence>
>> </xsd:complexType>
>> <xsd:element name="artifactWithDefaultSpEntityFault"
>> type="tns:SpsFaultType">
>>
>> </xsd:element>
>> </xsd:schema>
>> </wsdl:types>
>> ...
>> <wsdl:message name="artifactWithDefaultSpEntityRequest">
>> <wsdl:part name="parameters"
>> element="tns:artifactWithDefaultSpEntityRequest">
>> </wsdl:part>
>> </wsdl:message>
>> ...
>> <wsdl:portType name="svc">
>> <wsdl:operation name="artifactWithDefaultSpEntity">
>> <wsdl:input
>> message="tns:artifactWithDefaultSpEntityRequest"></wsdl:input>
>> <wsdl:output
>> message="tns:artifactWithDefaultSpEntityResponse"></wsdl:output>
>> <wsdl:fault name="fault"
>> message="tns:artifactWithDefaultSpEntityFault"></wsdl:fault>
>> </wsdl:operation>
>> </wsdl:portType>
>> <wsdl:binding name="svcSOAP" type="tns:svc">
>> <wsdl:operation name="artifactWithDefaultSpEntity">
>> <soap:operation
>> soapAction="http://www.company.com/sps/artifactWithDefaultSpEntity"/>
>> <wsdl:input>
>> <soap:body use="literal"/>
>> </wsdl:input>
>> <wsdl:output>
>> <soap:body use="literal"/>
>> </wsdl:output>
>> ......
>> </wsdl:binding>
>> --
>> Aaron Stromas
>
--
Aaron Stromas
Mobile: +1 240 271 6458