Showing posts with label Web Services. Show all posts
Showing posts with label Web Services. Show all posts

Thursday, February 5, 2009

Location by Zip code

http://www.phpfever.com/soap-zip-code-web-service.html

Wednesday, June 25, 2008

Axis: WSDD

To list already deployed services


 java org.apache.axis.client.AdminClient list

the content displayed is same as server-config.wsdd file
for example...


...
 <service name="webservice" provider="java:RPC">
  <parameter name="allowedMethods" value="*"/>
  <parameter name="className" value="com.hmco.edison.ws.axis.HierarchyServiceImpl"/>
  <parameter name="wsdlTargetNamespace" value="urn:soap.springaxis.HierarchyService.HMCO.com"/>
 </service>
...



Web Service Deployment Descriptor


<deployment xmlns="http://xml.apache.org/axis/wsdd/xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
  <service name="HierarchyService" provider="java:RPC" ><!-- style="rpc" use="encoded" -->
    <!--<parameter name="wsdlTargetNamespace" value="urn:soap.spring_axis.HierarchyService.HMCO.com/>-->
    <parameter name="className" value="com.hmco.edison.ws.axis.HierarchyServiceImpl" />
    <parameter name="allowedMethods" value="*" />
  </service>
</deployment>


Axis WSDD is mentioned on: AXIS

Axis: building using ant



<!-- Generate WSDL -->
    <target name="generateAuthenticationWSDL" depends="compile">
      <axis-java2wsdl 
        classname="com.hmco.morse.authentication.service.RemoteAuthenticationService" 
        namespace="urn:AuthenticationWS
        location="${soap.service}/AuthenticationWS" 
        output="${project.config.dir}/AuthenticationWS.wsdl">
        <mapping namespace="urn:AuthenticationWSpackage="com.hmco.morse.authentication.service"/>
      </axis-java2wsdl>
    </target>

    <!-- Generate WSDL -->
    <target name="generateAuthenticationWrappedWSDL" depends="compile">
      <axis-java2wsdl 
        classname="com.hmco.morse.authentication.service.RemoteAuthenticationService" 
        namespace="urn:AuthenticationWS
        location="${soap.service}/AuthenticationWS" 
        output="${project.config.dir}/AuthenticationWS.wsdl"
        style="wrapped">
        <mapping namespace="urn:AuthenticationWSpackage="com.hmco.morse.authentication.service"/>
      </axis-java2wsdl>
    </target>

    <!-- Generate Client And Move Descriptors -->
    <target name="generateAuthenticationClient">
      <axis-wsdl2java 
        url="${project.config.dir}/AuthenticationWS.wsdl" 
        output="${java2wsdl.output.dir}" 
        deployscope="request" 
        serverSide="yes"
      verbose="true" 
      helpergen="false">
      <mapping namespace="urn:AuthenticationWSpackage="com.hmco.morse.authentication.service"/>
    </axis-wsdl2java>
    <antcall target="moveAxisDescriptors"/>
    </target>

  <target name="moveAxisDescriptors">
    <echo message="moving: ${java2wsdl.output.dir}/com/hmco/morse/authentication/service/deploy.wsdd"/>
    <move file="${java2wsdl.output.dir}/com/hmco/morse/authentication/service/deploy.wsdd" todir="${project.deploy.dir}" failonerror="false"/>
    <echo message="moving: ${java2wsdl.output.dir}/com/hmco/morse/authentication/service/undeploy.wsdd"/>
    <move file="${java2wsdl.output.dir}/com/hmco/morse/authentication/service/undeploy.wsdd" todir="${project.deploy.dir}" failonerror="false"/>
  </target>