Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

#Java WsImport - non existent directory-

Empfohlene Antworten

Veröffentlicht

Hallo,

ich versuche gerade einen funktionierenten Webservice mit PHP Server und einem Java Client zu erstellen. Testweise erstmal nur eine einfache Addition.

Mittlerweile versucht wsimport wenigstens den Code zu generieren und bleibt nicht mehr beim parsen der WSDL hängen.

Jetzt kommt aber der Fehler...

server.php non existent directory

Was soll das heißen ? Findet er jetzt nicht mehr die server.php aber das hätte doch schon beim parsen Fehler geben müssen.

Unten beim Location Tag hab ich echt schon alles probiert.

WSDL

<?xml version ="1.0" encoding ="UTF-8" ?>

<definitions name="Math"
targetNamespace="http://www.errschaffer.square7.ch/Math.wsdl"
xmlns:tns="http://www.errschaffer.square7.ch/Math.wsdl"
xmlns:xsd1="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<message name='addRequest'>
<part name="a" type="xsd1:int"/>
<part name="b" type="xsd1:int"/>
</message>
<message name="addResponse">
<part name="Result" type="xsd1:int"/>
</message>

<portType name="addPortType">
<operation name="add">
<input message="tns:addRequest"/>
<output message="tns:addResponse"/>
</operation>
</portType>

<binding name="addBinding" type="tns:addPortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="add">
<soap:operation soapAction="urn:Math#add"/>
<input>
<soap:body namespace="urn:Math"/>
</input>
<output>
<soap:body use="encoded" namespace="urn:Math"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>

<service name="addService">
<port name="addPort" binding="tns:addBinding">
<soap:address location="http://www.errschaffer.square7.ch"/>
</port>
</service>
</definitions>[/PHP]

[b]server.php[/b]

[PHP]<?php

require_once('lib/nusoap.php');

$server = new soap_server;

function add($a, $B) {
return $a + $b;
}


$server->register ('add');
?>

Kann mir jemand helfen ? :)

Hat sich erledigt. Habs mit einem HTTP Request und der Get Methode gelöst.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.