[Java lista] wsdl :)

Maglódszki Viktor bocios at citromail.hu
2006. Dec. 21., Cs, 14:28:31 CET


sziasztokelkezdtem a wsdl-t egy olyan szemszögből megoldani, hogy irok teljesen ujat.kezdtem egy helloword-ela problémám, hogy nem megy át a java-ban átadott változó a php-nek :(a kód:php:<?phpfunction sayHello($firstName) {    return "csa $firstName!";}$s=new SoapServer("http://10.0.0.1/cas/soap2/teszt.wsdl");$s->addFunction("sayHello");$s->handle();?>wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="HelloService" 
targetNamespace="http://10.0.0.1/cas/soap2/teszt.wsdl" 
xmlns="http://schemas.xmlsoap.org/wsdl/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:tns="http://10.0.0.1/cas/soap2/teszt.wsdl" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    
 <message name="SayHelloRequest">
    <part name="firstName" type="xsd:string"/>
  </message>
  <message name="SayHelloResponse">
    <part name="yourname" type="xsd:string"/>
  </message>
  <portType name="Hello_PortType">
    <operation name="sayHello">
      <input message="tns:SayHelloRequest"/>
      <output message="tns:SayHelloResponse"/>
    </operation>
  </portType>
  <binding name="Hello_Binding" type="tns:Hello_PortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="sayHello">
      <soap:operation soapAction="sayHello" style="rpc"/>
      <input>
        <soap:body
               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
               namespace="http://schemas.xmlsoap.org/soap/envelope/"
               use="literal"/>
      </input>
      <output>
        <soap:body
               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
               namespace="http://schemas.xmlsoap.org/soap/envelope/"
               use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="Hello_Service">
    <documentation>WSDL File for HelloService</documentation>
    <port binding="tns:Hello_Binding" name="Hello_Port">
      <soap:address location="http://10.0.0.1/cas/soap2/teszt.php"/>
    </port>
  </service>
</definitions>a java-s kliens-et pedig generáltam jbuilder-ből és netbeans-ből isugyanaz a helyzetennyit ad vissza:  csa ! és nincs ott a név :(



_________________________________________
Tanulj saját időbeosztásod szerint! Kattints ide, ha nincs időd nyelviskolába járni!
INTERNETES NYELVISKOLA!

http://www.mediabo.hu/nyelviskolacitro.html
--------- következő rész ---------
Egy csatolt HTML állomány át lett konvertálva...
URL: http://javagrund.hu/pipermail/javalist/attachments/20061221/9a4bfb80/attachment.html 


További információk a(z) Javalist levelezőlistáról