Single quotes are fine, but the WSDL has many errors in it.
Validation using the Cape Clear SOA Editor yields these warnings:
Warning: The element named "persons" does not have a type or ref
attribute and therefore defaults to xsd:anyType. A custom serializer
must be added to the marshalling to handle this at runtime.
--> Caused by this declaration in the schema in the "subject" complexType:
<xsd:element arrayType="tns:user[]" name="persons"/>
This is not an appropriate way to define a SOAP Encoding Array.
You must define a complexType, such as:
<xsd:complexType name="ArrayOfPersons">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="tns:user[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
and define persons as:
<xsd:element name="persons" type="tns:ArrayOfPersons"
Warning : There is no type
[{http://www.w3.org/2001/XMLSchema}subjects] defined for the part
[Part: name=Response
typeName={http://www.w3.org/2001/XMLSchema}subjects] in the message
[Message: name={http://www.a-net.cz/soap/auction}subjectListResponse
Part: name=Response
typeName={http://www.w3.org/2001/XMLSchema}subjects] in the WSDL.
--> Caused by this declaration in the "subjectListResponse" message:
<wsdl:part name="Response" type="xsd:subjects"/>
It should be:
<wsdl:part name="Response" type="tns:subjects"/>
Warning : There is no message [Message:
name={http://schemas.xmlsoap.org/wsdl/}subjectListResponse] defined
for the output in operation [Operation: name=getSubjectList
style=NOTIFICATION
Output: name=null
Message: name={http://schemas.xmlsoap.org/wsdl/}subjectListResponse]
in the portType [PortType:
name={http://www.a-net.cz/soap/auction}subjectListPortType
Operation: name=getSubjectList
style=NOTIFICATION
Output: name=null
Message: name={http://schemas.xmlsoap.org/wsdl/}subjectListResponse]
in the WSDL.
--> Caused by this declaration in the portType:
<wsdl:output message="wsdl:subjectListResponse"/>
It should be:
<wsdl:output message="tns:subjectListResponse"/>
Warning : There is no portType [PortType:
name={http://schemas.xmlsoap.org/wsdl/}subjectListPortType
Operation: name=getSubjectList
Output: name=null] defined for the binding [Binding:
name={http://www.a-net.cz/soap/auction}subjectListBinding
PortType: name={http://schemas.xmlsoap.org/wsdl/}subjectListPortType
Operation: name=getSubjectList
Output: name=null
BindingOperation: name=getSubjectList
BindingOutput: name=null
SOAPBody ({http://schemas.xmlsoap.org/wsdl/soap/}body):
required=null
use=encoded
encodingStyles=[http://schemas.xmlsoap.org/soap/encoding/]
namespaceURI=urn:xmethods-delayed-quotes
SOAPOperation ({http://schemas.xmlsoap.org/wsdl/soap/}operation):
required=null
soapActionURI=urn:xmethods-delayed-quotes#getSubjectList
SOAPBinding ({http://schemas.xmlsoap.org/wsdl/soap/}binding):
required=null
transportURI=http://schemas.xmlsoap.org/soap/http
style=rpc] in the WSDL.
--> Caused by this declaration in the binding:
<wsdl:binding name="subjectListBinding"
type="wsdl:subjectListPortType">
It should be:
<wsdl:binding name="subjectListBinding"
type="wsdl:subjectListPortType">
Warning : There is no binding [Binding: name={
http://www.a-net.cz/soap/auction/auction}subjectListBinding] defined
for the port [Port: name=subjectListPortType
Binding: name={ http://www.a-net.cz/soap/auction/auction}subjectListBinding
SOAPAddress ({http://schemas.xmlsoap.org/wsdl/soap/}address):
required=null
locationURI=http://192.168.0.8/a-net_aukce/_def_www2/cms/include/soap/subjectlist.php]
in the service [Service:
name={http://www.a-net.cz/soap/auction}subjectListService
Port: name=subjectListPortType
Binding: name={ http://www.a-net.cz/soap/auction/auction}subjectListBinding
SOAPAddress ({http://schemas.xmlsoap.org/wsdl/soap/}address):
required=null
locationURI=http://192.168.0.8/a-net_aukce/_def_www2/cms/include/soap/subjectlist.php]
in the WSDL.
--> Caused by this namespace declaration in the <wsdl:definitions>:
xmlns:tns=" http://www.a-net.cz/soap/auction/auction"
This namespace declaration must match the targetNamespace:
xmlns:tns="http://www.a-net.cz/soap/auction"
Anne
On 8/22/07, Walker, Jeff <[EMAIL PROTECTED]> wrote:
>
>
> Not sure if this is it,
> but there is a whitespace after the first quote in the declaration of the
> tns namespace in the wsdl file (without tns declared properly, the binding
> down in the service tag won't make sense to the WSDL2Java class).
> Also you use single quotes in all of your namespace declarations, is that
> allowed?? (I always use double quotes).
> -jeff
> ________________________________
> From: Ondrej Vlach [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 22, 2007 1:25 PM
> To: [email protected]
> Subject: AXIS error "There is an undefined binding..."
>
>
>
> Hello,
> I have little problem with AXIS 1.4 (binary package). I tried use AXIS with
> my web service, but i got this error:
>
> error: Emitter failure. There is an undefined binding (subjectListBinding)
> in the WSDL document.
> Hint: make sure <port binding=".."> is fully qualified.
>
> I can't find any error in WSDL definition, so if anyone can help me with
> this, i will be grateful.
>
> Regards,
> Andrew
>
> --
> S pozdravem / Yours sincerely,
> Ondrej Vlach
> Software developer & consultant
> e-mail: [EMAIL PROTECTED]
> jabber: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]