Nainstaloval jsem Sun Java Application Server 8.1 PE a s nim to funguje.
Takze problem bude spis nekde u JBOSSu nebo vzajemne kompatibilite.
WSDL vygenerovane SUN AS:
<?xml version="1.0" encoding="UTF-8"?><definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:PhoneDirectory/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns2="urn:PhoneDirectory/types"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="PhoneDirectory"
targetNamespace="urn:PhoneDirectory/wsdl">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:PhoneDirectory/types"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="urn:PhoneDirectory/types">
<complexType name="getVersion">
<sequence/></complexType>
<complexType name="getVersionResponse">
<sequence>
<element name="result" type="string"
nillable="true"/></sequence></complexType>
<element name="getVersion" type="tns:getVersion"/>
<element name="getVersionResponse"
type="tns:getVersionResponse"/></schema></types>
<message name="PhoneDirectorySEI_getVersion">
<part name="parameters" element="ns2:getVersion"/></message>
<message name="PhoneDirectorySEI_getVersionResponse">
<part name="result" element="ns2:getVersionResponse"/></message>
<portType name="PhoneDirectorySEI">
<operation name="getVersion">
<input message="tns:PhoneDirectorySEI_getVersion"/>
<output
message="tns:PhoneDirectorySEI_getVersionResponse"/></operation></portType>
<binding name="PhoneDirectorySEIBinding" type="tns:PhoneDirectorySEI">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<operation name="getVersion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output></operation></binding>
<service name="PhoneDirectory">
<port name="PhoneDirectorySEIPort"
binding="tns:PhoneDirectorySEIBinding">
<soap:address
location="http://localhost:8080/FirstWebService/PhoneDirectory"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
</port>
</service>
</definitions>
JBOSS se od toho lisi absenci
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" u soap:address a pouzitim
jine adresy (misto localhost vzal jmeno pocitace).
Nastaveni projektu / WSCOMPILE (default) u webove aplikace je:
useonewayoperations, documentliteral, strict
Nastaveni projektu / WSCOMPILE (default) u klienta je:
wsi,strict
Webove sluzby zkousim poprve, mozna delam neco spatne..
Dekuji,
Leos Urban
Oto Buchta napsal(a):
Takto tezko radit, nemam tu ani JBoss ani NetBeans. Posli sem WSDLko, SOAPove
zpravy a zdrojaky, at muzeme zjistit co s tim dal. Muze to byt temer cokoli.
Temer to vypada, ze se michaji wrapped doc/lit a buvico (mozna rpc/encoded).
Podle mne vyzaduje klient SOAP v body XML element wrapujici response, kdezto
servisa vraci primo Stringovy content. Pak to ale vypada, ze NetBeany neumi
rozdychat svoji vlastni webservisu ;-)