Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

次の手順では、アプリケーションの "WEB-INF" フォルダ内にある "nexaweb-webservices.xml" を作成します。次のようにエントリを追加できます。
 

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

...


<web-services>

...


    <web-service xmlns="http://nexaweb.com/webservices"

...


     name="Google"

...


     scratchDir="{0}/WEB-INF/WebServices/{1}"

...


     wsdlUrl=">

...


</web-services>

この設定では、特定の Web サービスに使用する、次の 2 つの属性を変更するだけです。

...

// クライアントサイドまたはサーバーサイドのコードに基づいて、まずブローカーを取得します。
String wsdlUrl = "http://www.soapclient.com/xml/googleSearch.wsdl"
String name="GoogleWebService";

...

// クライアントサイドまたはサーバーサイドのコードに基づいて、まずブローカーを取得します。
String wsdlUrl = "http://www.soapclient.com/xml/googleSearch.wsdl"
String name="GoogleWebService";

...