SOAP - Java & PHP

Hi all!
I am developing now a SOAP extension for my web. I am using nusoap.php for PHP. Now I have the WSDL file and would like to connect to the server with Java. With WSDL2JAVA I create the Java Classes, but I could't connect to the server. Can anyone post me a link for more information about this?
Thanks!
Regards
Nikolay

how did you solve this? I am having a similar problem :(

Similar Messages

  • Java+php+linuxruntime  error

    Dear all i have one java class i amm using php pages to to use this class
    currently i am getting below error
    Fatal error: Uncaught exception 'java_RuntimeException' with message 'Could
    not connect to the context server . Error message: Connection refused (111)
    ' in /usr/local/apache2/htdocs/java/Java.inc:1163 Stack trace: #0
    /usr/local/apache2/htdocs/java/Java.inc(1180):
    java_Protocol->createSimpleHandler('@java-bridge-10...') #1
    /usr/local/apache2/htdocs/java/Java.inc(1187):
    java_Protocol->createHandler() #2
    /usr/local/apache2/htdocs/java/Java.inc(365):
    java_Protocol->java_Protocol(Object(java_Client)) #3
    /usr/local/apache2/htdocs/java/Java.inc(1541): java_Client->java_Client() #4
    /usr/local/apache2/htdocs/java/Java.inc(1650):
    __javaproxy_Client_getClient() #5
    /usr/local/apache2/htdocs/java/Java.inc(1665): java_session_array(Array) #6
    /usr/local/apache2/htdocs/java.php(3): java_session() #7 {main} thrown in
    /usr/local/apache2/htdocs/java/Java.inc on line 1163

    "Connection refused"
    I think it is safe to assume your network settings are wrong and it actually has nothing to do with java. Firewall problem perhaps?

  • Java/php bridge

    Hi All,
    i am working on jdeveloper10.1.3 & OracleApps Server.
    suggests some possible ways to bridge Java/PHP?
    I am facing problem integrating with jsp page and php page . if any one know its great help me.
    What are the software’s required for bridge between java and php.
    Request is so needful.
    thq,
    elisha.

    Judging by your later response, I'd say Gene got it right first time in that it is a memory issue.
    It looks like your application needs more than 512m heap size. I guess there isn't enough on the box where WebLogic is installed, otherwise you would have used the same sizes as TomCat.
    Apologies if I'm stating the obvious

  • Java SOAP and PHP server

    HI all, I have the follow problem:
    I have created a SOAP server with PHP. The client connection with PHP and with generated local classes for Java, with java.apache.axis.wsdl.WSDL2Java, is working very well and I don't have problems with this.
    But now I try to use my API with the normal calls from JAVA with the direct Call without local classes:
    Here are any sniplets:
    My Method in the wsdl file:
    - <xsd:complexType name="MyMethodRequest">
    - <xsd:all>
    <xsd:element name="username" type="xsd:string" />
    <xsd:element name="password" type="xsd:string" />
    <xsd:element name="partnerid" type="xsd:int" />
    <xsd:element name="signkey" type="xsd:string" />
    </xsd:all>
    </xsd:complexType>
    - <operation name="MyMethod">
    <soap:operation soapAction="urn:MyURN#MyMethod" style="rpc" />
    - <input>
    <soap:body use="encoded" namespace="urn:MyURN" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:MyURN" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    The definition in the PHP file look like this:
    $server->wsdl->addComplexType(
    'MyMethodRequest',
    'complexType',
    'struct',
    'all',
    array(
    'username' => array('name' => 'username', 'type' => 'xsd:string'),
              'password' => array('name' => 'password', 'type' => 'xsd:string'),
              'partnerid' => array('name' => 'partnerid', 'type' => 'xsd:int'),
    'signkey' => array('name' => 'signkey', 'type' => 'xsd:string')
    The server function is recieving an array with all this paramethers:
    function MyFunktion($member)
    // do anything
    Also the Java code:
    String method = "MyMethod";
    Object[] member = new Object[] {username, password, partnerid, signkey};
    Service service = new Service();
    Call call = (Call) service.createCall();
    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("urn:MyURN", method));
    call.setSOAPActionURI("urn:MyURN#MyMethod");
    call.setUseSOAPAction(true);
    call.addParameter( "member", XMLType.SOAP_ARRAY, ParameterMode.IN );
    call.setReturnType( XMLType.XSD_BOOLEAN );
    Object[] params = new Object[] {member};
    Boolean ret = (Boolean) call.invoke(params);
    System.err.print(" " + ret);
    System.err.println();
    I compile the class and when I start it, I don't send any data to the server, but why??? What do I made false? The server don't gives an error, but he dont recieve any data from me!
    Thanks for every help:-)
    Best Regards
    Nik

    Hi is there really noone who can help me? I need this so much:-)
    Please help me here:-)
    Thanks!
    Regards
    Nik

  • Java - PHP communication

    Hi,
    I'm quite new to EJB3 and going to build web application using (probably) EJB3 and Struts 2. My problem is, that I need to bound some parts of my new business logic with this older PHP website. I just need to call some simple Java methods (e.g. searching in db - pass on one or two parameters and get a result) from this PHP website. I've done some research and it looks like I should use Web services. There is a lot of materials for this topic in the web, but somewhere I've read, that web services are overkill for such the simple scenario. Is here any easier way to call Java business logic from PHP. Thank you very much for your answer.
    Edited by: esembaJ on 13.10.2008 22:53

    As I understood, your "application" consists of two parts: web site written on php and EJB+Struts.
    If so, you can easily make HTTP requests from php to your Struts actions.
    Your actions can make response in JSON (JavaScript Object Notation) with the help of json-plugin.
    With these approach you beat two things: you can make actions which can be easily used asynchronously (JSON helps to do this) also they can be used by any application that can parse JSON response.
    You don't need to dig into WS. Your case is very simple because of powerful java web-framework. WS will make your solution too complicated. Also you'll have troubles with WS on php-side.
    Once, I've had to send some data to java-WS from php4. I've tried to realize it in many ways, but finally I've made simple HTTP request with manually formed XML-body (it was SOAP).

  • Issue with Java - PHP interoperability

    Hi,
    There are some converts written in PHP that can take raw wikipedia data and output a good HTML. I wanted to make use of these in my Java code.
    So in my Java Web App, I wanted to run the PHP parser, get hold of the InputStream and push it to my ServletOutputStream.
    Code Snippet:
       String command="php testparser.php Anarchism.wikimarkup";
       proc = Runtime.getRuntime().exec(command);
       InputStream in = proc.getInputStream();
       InputStreamReader isr = new InputStreamReader(in);
       BufferedReader br = new BufferedReader(isr);
       String line = null;
       while ((line = br.readLine()) != null) {
         System.out.println(line);
       }But the problem here is that the PHP Process never stops and hence the Buffer never ends. THe program is waiting in infinite loop in readLine().
    Please let me know if anyone has tried this and whats a better way to handle interoperability between PHP and Java.
    Thanks,
    Phani

    Phanikumar_Bhamidipati wrote:
    Yeah, I had a look at the document. But as per my understanding, the way the PHP engine runs is different from normal execs. I don't see how it can 'run different' and in my experience it doesn't. PHP sends output to stdout and stderr and reads from stdin. When PHP terminates it will close stdout and stderr and, if you have followed the recommendations in the reference, your readLine() will return 'null'.
    Because the same code ran fine when I automated unzipping a set of files using "bunzip2" command.If you read the article it explains a possible reason for this BUT until you implement the recommendations you will not know what is wrong.
    >
    I tried using Process.waitFor() method as well, but the result is same (Infinite Loop).This almost certainly is nothing to do with Process.waitFor() and probably everything to do with buffers filling (probably stderr).
    Until you post the code with the recommendations implemented that exhibits the same blocking problem it is a waste of time anyone responding further.

  • Authentification with Java, PHP, .htaccess

    Hi there,
    I am thinking about creating a Java project that requires some authentification routines.
    Users (which are given a unique user ID) are employing a client software (Java) that retrieves specific data from a webserver (available ressources HTML, SSI, PHP, .htaccess).
    A user should be able to use any client to get his data from the webserver, so unique client IDs are a non-option. Probably two users might even use two instances of the same client on the same machine (means, same IP).
    I want this to be reasonably secure, so no plaintext protocol. I thought about something like a challenge - response architecture, BUT...
    ...how can I do this with only PHP (server) and Java (client) as options?
    I don�t need a polished, smooth, perfect solution - a rough idea will do. Are there any secret / public key architectures with ready-to-use PHP modules that are also implemented in Java? Or has anybody a completely different idea I haven�t thought about yet?

    Have a look on RFC 2617 from IETF (www.ietf.org). This RFC specifies two mechanisms for authenticated access to HTTP resources. .htaccess is based on these mechanisms. Unfurtonately, they are not secure enough. The first protocol, BASIC, sends clear text username/password. The second, DIGEST, sends digests of the username/password using a challenge-response scheme. The disadvantage of DIGEST is that the username/password needs to be stored in clear on the server-side.
    What you could do, which is something I am currently working on myself, is to implement your own protocol, based on this RFC. This is possible because you are in control of both the clients and the server. It wouldn't be possible if standard browsers where used as clients.
    Good luck!
    /Christer

  • Web service - eclipse - apache/tomcat - soap - java

    Hi!
    I want to develop a web service. I use eclipse as java ide, and apache as web server. I could not get the information how to develop a web service with my ide and web server. I want to use soap too.
    Anyone will you please help/instruct me to develop a web service.
    Thanks for all...

    bump
    Can any one help me here?
    I have an application that uses SOAP and JNLP. Clients with Java 1.4.2 everything works fine but under Java1.5 the SOAP calls take forever to complete (each is about 4 seconds and there are often a lot of SOAP calls)
    My webserver is Tomcat 5.5.12
    I'm not sure of my soap version, but i believe it is 2.3 (.1? how can i find out)
    I have Java 1.5 and 1.4 installed and Tomcat uses Java 1.5 - I compile my classes for Java 1.4 but I really want Java 5 to work.
    My soap services are deployed and correctly displayed with the SOAP admin page.
    What kind of java 5 soap incomptability might i have found here? can anyone help me.
    B.t.w. from my local computer this problem doesn't happen - Java 1.5 works correctly - it is only when it is on a different computer (even on the intranet) that i have problems.
    Any ideas
    Thanks
    Martin

  • Java - php / passing parameters

    hi,
    i am trying to set up a communication between my java app and a php skrip. i've done the following:
    try {
    URL url =
    new URL("http://test.net/" +
    "login.php");
    URLConnection connection =
    url.openConnection();
    connection.setDoOutput(true);
    PrintStream out =
    new PrintStream(connection.getOutputStream());
    out.println("username=" + URLEncoder.encode("test"));
    out.println("password=" + URLEncoder.encode("9e07480f0e4952926e115f15bc50ec47"));
    out.close();
    DataInputStream in =
    new DataInputStream(connection.getInputStream());
    result = in.readLine();
    System.out.println("result:" + result.toString());
    in.close();
    } catch(MalformedURLException mue) {
    System.out.println("Illegal URL: " + mue);
    } catch(IOException ioe) {
    System.out.println("IOException: " + ioe);
    } catch(Exception e) {
    System.out.println("Error: " + e);
    the php gets my request but it doesn't realize the parameters username/passord.
    is there a way to set the parameters through the api or do is the only way to do it by adding them to the url like ?username=bla&password=bla. i really would like to do it on a higher level but maybe there is no api support available. thanx for any advice, mischka.

    Golden rule of testing: test one thing at a time.
    Try it with this (working code) to test that you know that you CAN write a simple *.txt message file from a TextField first before extending it to verification /password whatever conditions.import java.net.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    public class write extends java.applet.Applet implements ActionListener {  
        TextArea info = new TextArea(10,60);
         Button Bsend = new Button("SEND");
         String str = "", text="";
         public void init() {
              add(info);
              Bsend.addActionListener(this);
              add(Bsend); 
         public void paint (Graphics g) {
              g.drawString(str, 30, 270);
         public void actionPerformed(ActionEvent evt) {
                if (evt.getSource().equals(Bsend) ) {
                try{
                    writePage();
                   catch(Exception x){ System.out.print(x); }
              repaint();
        public void writePage() throws Exception {  
            text = info.getText();     
             URL url = new URL("http://"+getCodeBase().getHost()+"login.php");
                URLConnection conn = url.openConnection();
                conn.setDoOutput(true);
                OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
                wr.write(text);
                wr.flush();
            wr.close();
            str = "Information sent to " + getCodeBase().getHost().toString();
    }

  • Web hosting for ColdFusion, ROR, Java, PHP, MySQL

    The company I currently use to host my web site supports PHP, MySQL, Ruby on Rails, but I don't think it supports ColdFusion, and I would imagine there are other things I could not put on my web site, such as EJB based Java apps.
    My point is that does anyone know of a web hosting company that supports PHP, MySQL, Ruby on Rails, AND ColdFusion, AND anything else I might need to be able to practice using Flex to connect to data on the server using various technologies, like RemoteObject, WebService, etc.
    The web hosting company must be reliable and stable as well.

    I'd recommend you to get a dedicated server and setup there everything you need.
    http://0x2a-dc.com/index.php?name=shop&cat=7

  • Soap : java server / Vb client ?

    what kind of problems can occur if i develop an application based on soap protocol with a VB client and java server ( apache server web) ?

    Hi,
    Have u found any solution..???
    if yes please help me ..
    am trying for an application which can communicate over net between
    Solaris and Win NT. I am thinking of using SOAP for this communication.
    Solaris is going to post SOAP envelops using Java and WinNT is going to
    read these envelops using VB.
    but i want this communication to be secure.
    so, i would like to know
    1. Is SOAP the right technology for this
    2. Can SOAP envelops be made secure
    3. Do u have any other solution for this
    4. Can i send a entire file as an attachment/text with xml
    5. PLEASE : Can u provide me with sample code
    Kind regards
    Sachin

  • Java - php

    Hi
    Can I ask what's wrong with the following code?
    I got 2 area in a html page, I want to press a button, then it will pass some information to area 2 which is the php script to manipulate.
    public void actionPerformed(ActionEvent e) {
         AppletContext ac = getAppletContext();
         try{
         URL theURL = new URL("area2.php?state=TAS");
         ac.showDocument(theURL, "area2");
         }catch(MalformedURLException me){}
    }

    Nice catch block there. Do nothing if an error
    occurs - that's great thinking.
    In general that's true of course... well, it's
    entirely untrue but you know what I mean ;o) ...but
    surely in the situation where you're passing a
    literal which you know absolutely to be a valid
    parameter, there's no real need to implement any
    useful handling.Maybe someone might try to hack the bytecode...

  • PHP using soap to call EJB

    Hello everybody,
    I've a problem to call a EJB form a PHP script.
    There is a Apache with PHP 5.2.0 and a SAP NetWeaver Application Server 7.10 / AS Java 7.10 running on the system.
    I wanted to use soap to call a method in an EJB. It's only a test EJB:
    [code]
    package beans;
    import javax.ejb.Stateless;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    @WebService(name="HelloWorldEARBean",serviceName="HelloWorldEARBeanService",targetNamespace="http://beans/",portName="HelloWorldEARBeanPort") @Stateless public class HelloWorldEARBean {
      @WebMethod public String sayHello(String testStr){
                return "Hello Mr. "+testStr;
      @WebMethod public String getReturn(String inputStr){
                return "the return value is"+inputStr;
    [/code]
    I tried it with the PEAR SOAP in the following script:
    [code]
    <?php
    require_once 'SOAP/Client.php';
    $wsdl_url     = 'http://localhost:50000/HelloWorldEARBeanService/HelloWorldEARBean?wsdl';
    $WSDL = new SOAP_WSDL($wsdl_url);
    $client = $WSDL->getProxy();
    $client->__trace(1);
    $options=array('namespace' => 'http://beans/',
      'style' => 'rpc',
      'soapaction' => 'sayHello');
    $NAME = "Bob"; 
    $parameters=array(
         'parameters', $NAME
    $result = $client->getReturn($parameters);
    echo "<pre>";
    print_r($params);
    echo "</pre>";
    echo "<h2>return</h2>";
    echo "<pre>";
    print_r($result);
    echo "</pre>";
    echo '<h2>Request</h2>';
    echo '<pre>' . htmlspecialchars($client->__getlastrequest(), ENT_QUOTES) . '</pre>';
    echo '<h2>Response</h2>';
    echo '<pre>' . htmlspecialchars($client->__getlastresponse(), ENT_QUOTES). '</pre>';
    ?>
    [/code]
    The AS distributes the following WSDL:
    [code]
    - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://beans/" xmlns:tns="http://beans/">
    - <wsdl:types>
    - <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://beans/">
      <xs:element name="getReturn" type="tns:getReturn" />
      <xs:element name="getReturnResponse" type="tns:getReturnResponse" />
      <xs:element name="sayHello" type="tns:sayHello" />
      <xs:element name="sayHelloResponse" type="tns:sayHelloResponse" />
    - <xs:complexType name="sayHello">
    - <xs:sequence>
      <xs:element name="arg0" type="xs:string" minOccurs="0" />
      </xs:sequence>
      </xs:complexType>
    - <xs:complexType name="sayHelloResponse">
    - <xs:sequence>
      <xs:element name="return" type="xs:string" minOccurs="0" />
      </xs:sequence>
      </xs:complexType>
    - <xs:complexType name="getReturn">
    - <xs:sequence>
      <xs:element name="arg0" type="xs:string" minOccurs="0" />
      </xs:sequence>
      </xs:complexType>
    - <xs:complexType name="getReturnResponse">
    - <xs:sequence>
      <xs:element name="return" type="xs:string" minOccurs="0" />
      </xs:sequence>
      </xs:complexType>
      </xs:schema>
      </wsdl:types>
    - <wsdl:message name="sayHelloIn">
      <wsdl:part name="parameters" element="tns:sayHello" />
      </wsdl:message>
    - <wsdl:message name="sayHelloOut">
      <wsdl:part name="sayHelloResponse" element="tns:sayHelloResponse" />
      </wsdl:message>
    - <wsdl:message name="getReturnIn">
      <wsdl:part name="parameters" element="tns:getReturn" />
      </wsdl:message>
    - <wsdl:message name="getReturnOut">
      <wsdl:part name="getReturnResponse" element="tns:getReturnResponse" />
      </wsdl:message>
    - <wsdl:portType name="HelloWorldEARBean">
    - <wsdl:operation name="sayHello" parameterOrder="parameters">
      <wsdl:input message="tns:sayHelloIn" />
      <wsdl:output message="tns:sayHelloOut" />
      </wsdl:operation>
    - <wsdl:operation name="getReturn" parameterOrder="parameters">
      <wsdl:input message="tns:getReturnIn" />
      <wsdl:output message="tns:getReturnOut" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="HelloWorldEARBeanBinding" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" type="tns:HelloWorldEARBean">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="sayHello">
      <soap:operation soapAction="" />
    - <wsdl:input>
      <soap:body parts="parameters" use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
    - <wsdl:operation name="getReturn">
      <soap:operation soapAction="" />
    - <wsdl:input>
      <soap:body parts="parameters" use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="HelloWorldEARBeanService">
    - <wsdl:port name="HelloWorldEARBeanPort" binding="tns:HelloWorldEARBeanBinding">
      <soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="http://localhost:50000/HelloWorldEARBeanService/HelloWorldEARBean" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
    [/code]
    By the following output it's obvious that the AS or the EJB (webservice) doesn't receive the parameter send by the PHP script. Look at the output:
    return value:
    the return value is null
    [code]
    Request:
    POST /HelloWorldEARBeanService/HelloWorldEARBean HTTP/1.0
    User-Agent: PEAR-SOAP 0.8.0RC4-devel
    Host: localhost
    Content-Type: text/xml; charset=UTF-8
    Content-Length: 438
    SOAPAction: ""
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    >
    <SOAP-ENV:Body>
    <getReturn xmlns="http://beans/">
    <item>parameters</item>
    <item>Bob</item></getReturn>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Response:
    HTTP/1.1 200 OK
    server: SAP NetWeaver Application Server 7.10 / AS Java 7.10
    content-type: text/xml; charset=utf-8
    date: Wed, 14 Feb 2007 15:51:53 GMT
    connection: close
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsu:Created>2007-02-14T15:51:53Z</wsu:Created>
    <wsu:Expires>2007-02-14T15:52:23Z</wsu:Expires></wsu:Timestamp></wsse:Security></SOAP-ENV:Header>
    <SOAP-ENV:Body><ns2:getReturnResponse xmlns:ns2='http://beans/'>
    <return>the return value is null</return></ns2:getReturnResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
    [/code]
    I used different soap interfaces for PHP like nusoap and the integrated soap interface of PHP 5.
    Further I experimented with different parameters inside the function call
    that results in small differencies at the xml-request.
    Thanks.

    Hi
    I've solved the problem now. I just have to add
    @SOAPBinding(style=SOAPBinding.Style.RPC)
    in the EJB, that's all.
    Here is the complete code, ... maybe some other guys have this problem too, so I will post the working code:
    At first the EJB:
    package beans;
    import javax.ejb.Stateless;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import javax.jws.soap.SOAPBinding;
    import beans.HelloWorldEARBean;
    @WebService(name="HelloWorldEARBean",serviceName="HelloWorldEARBeanService",targetNamespace="http://beans/",portName="HelloWorldEARBeanPort")
    @SOAPBinding(style=SOAPBinding.Style.RPC)
    @Stateless public class HelloWorldEARBean {
         @WebMethod public String sayHello(@WebParam(name="testStr") String testStr){
                return "Hello Mr. "+testStr;
    2. the local XML:
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://beans/" xmlns:tns="http://beans/">
      <wsdl:types>
        <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://beans/">
          <xs:element name="sayHello" type="tns:sayHello"/>
          <xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
          <xs:complexType name="sayHello">
              <xs:element name="testStr" type="xs:string" minOccurs="0"/>
          </xs:complexType>
          <xs:complexType name="sayHelloResponse">
              <xs:element name="return" type="xs:string" minOccurs="0"/>
          </xs:complexType>
        </xs:schema>
      </wsdl:types>
      <wsdl:message name="sayHelloIn">
        <wsdl:part name="parameters" element="tns:sayHello"/>
      </wsdl:message>
      <wsdl:message name="sayHelloOut">
        <wsdl:part name="sayHelloResponse" element="tns:sayHelloResponse"/>
      </wsdl:message>
      <wsdl:portType name="HelloWorldEARBean">
        <wsdl:operation name="sayHello" parameterOrder="parameters">
          <wsdl:input message="tns:sayHelloIn"/>
          <wsdl:output message="tns:sayHelloOut"/>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="HelloWorldEARBeanBinding" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" type="tns:HelloWorldEARBean">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="sayHello">
          <soap:operation soapAction=""/>
          <wsdl:input>
            <soap:body parts="parameters" use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="HelloWorldEARBeanService">
        <wsdl:port name="HelloWorldEARBeanPort" binding="tns:HelloWorldEARBeanBinding">
          <soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="http://localhost:50000/HelloWorldEARBeanService/HelloWorldEARBean"/>
        </wsdl:port>
      </wsdl:service>
    </wsdl:definitions>
    3. the PHP script:
    see next post
    Thank you very much for your help.

  • Webservices using PHP - PEAR SOAP Package

    Hello,
    I am looking to query then use IDM attributes in our PHP based portal using webservices.
    THe PHP PEAR SOAP Client is the library I intend to use.
    Has anyone successfully used a PHP Library to extract IDM attributes?
    Below is the start of my venture.
    Thank you in advance
    <?
    /* Include PEAR::SOAP's SOAP_Client class: */
    require_once('SOAP/Client.php');
    /* Create a new SOAP client using PEAR::SOAP's SOAP_Client-class: */
    $client = new SOAP_Client('http://domain.name.com/idm/servlet/rpcrouter2');
    /*Send request to server to the server and store its response in $response: */
    $response = $client->call('rpcrounter2',$params,array('namespace'=> 'urn:oasis:
    names:tc:DSML:2:0:core','trace'=>'true'));
    /* Print the server-response: */
    echo $response;

    Hello,
    I am looking to query then use IDM attributes in our PHP based portal using webservices.
    THe PHP PEAR SOAP Client is the library I intend to use.
    Has anyone successfully used a PHP Library to extract IDM attributes?
    Below is the start of my venture.
    Thank you in advance
    <?
    /* Include PEAR::SOAP's SOAP_Client class: */
    require_once('SOAP/Client.php');
    /* Create a new SOAP client using PEAR::SOAP's SOAP_Client-class: */
    $client = new SOAP_Client('http://domain.name.com/idm/servlet/rpcrouter2');
    /*Send request to server to the server and store its response in $response: */
    $response = $client->call('rpcrounter2',$params,array('namespace'=> 'urn:oasis:
    names:tc:DSML:2:0:core','trace'=>'true'));
    /* Print the server-response: */
    echo $response;

  • Array_reverse() in PHP -- ist it possible in JAVA?

    Hello JAVA Community,
    I'am a newbe in JAVA, an older C++/PHP Developer.
    How can I do that in JAVA:
    // PHP Code:
    $input  = array(3,4,6,6,7,8,9);
    $result = array_reverse($input);thank you very much for your kind solutions..
    rgds emile

    >
    Dear Aurelius,
    thank very much but im am just looking of an "method", ist there any method or not? That is my question.There is not one built in by default, but I showed you both how to do it and how to make it specially built into the system for you.
    Emil_Orlowski wrote:
    An older C++ developer, you say? I don't mean to be condescending, but you never had to do anything like
    this in C++? The C++ I know is the land of "You have to do everything yourself."Please do not be angry with me! I have difficulties to comprehend it, why one is busy with unnecessary details? It is just about a PHP function; I search for an equal function in Java.The answer simply could be "there is nothing something like that in Java".Do not worry; I am not angry with you.
    I see that you have difficulty comprehending it, as you say. Based on your writing, it appears that English is not your first language. Is that correct? I did not realise this at first. I will assume any misunderstanding is due to this language barrier.
    >
    It is just about a PHP function; I search for an equal function in Java.The answer simply could be "there is nothing something like that in Java".
    >
    Someone else has pointed out that it does exist in Java, though it is for a different data structure and not specifically for an array.
    You can put what I gave you into a method and call that, or you can use a Collection instead of an array and use the Collections reversal method that someone else mentioned.
    One last thing, concerning terminology, just in case you did not realise it (I assume not since you write "method" in quotation marks) since you are used to dealing with C++ and PHP. The term method refers to a function which is a member of a class or object, and, since almost all data are objects in Java, all functions in Java are methods. Everyone around here will say method instead of function.
    I hope all this helps you. Good fortune to you in your Java endeavors.

Maybe you are looking for