title: accessing a java webservice from the webservice client
body: <p>I am trying to access a java webservice by sending a soap request to the service
  the strange part is that until recently it worked fine, and now it gives me an internal server error
  what am i doing wrong ??</p>
  
  <p>this is my soap message:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://webservice.lenabru.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; &lt;soapenv:Body&gt; &lt;q0:register&gt;&lt;q0:regFirstName&gt;&lt;/q0:regFirstName&gt;&lt;q0:regLastName&gt;&lt;/q0:regLastName&gt;&lt;q0:regLoginName&gt;&lt;/q0:regLoginName&gt;&lt;q0:regPassword&gt;&lt;/q0:regPassword&gt;&lt;q0:regAddress&gt;&lt;/q0:regAddress&gt;&lt;q0:regEmail&gt;&lt;/q0:regEmail&gt;&lt;q0:regPhone&gt;&lt;/q0:regPhone&gt;&lt;/q0:register&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt; 
  </code></pre>
  
  <p>and this is the response i get from the server </p>
  
  <pre><code>"&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;soapenv:Body&gt;
    &lt;soapenv:Fault&gt;
     &lt;faultcode&gt;soapenv:Server.userException&lt;/faultcode&gt;
     &lt;faultstring&gt;java.lang.reflect.InvocationTargetException&lt;/faultstring&gt;
     &lt;detail&gt;
      &lt;ns1:hostname xmlns:ns1="http://xml.apache.org/axis/"&gt;Lena&lt;/ns1:hostname&gt;
     &lt;/detail&gt;
    &lt;/soapenv:Fault&gt;
   &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;"
  </code></pre>
  
  <p>this is the contents of the webmethod i am trying to reach:</p>
  
  <pre><code>@WebMethod
      public boolean register(String regFirstName, String regLastName, String regLoginName, String regPassword, String regAddress, String regPhone, String regEmail) {
          return false;
      }
  </code></pre>
  
  <p>this is my wsdl:</p>
  
  <pre><code>&lt;wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webservice.lenabru.com" xmlns:intf="http://webservice.lenabru.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webservice.lenabru.com"&gt;
  &lt;!--
  WSDL created by Apache Axis version: 1.4
  Built on Apr 22, 2006 (06:55:48 PDT)
  --&gt;
  &lt;wsdl:types&gt;
  &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://webservice.lenabru.com"&gt;
  &lt;element name="register"&gt;
  &lt;complexType&gt;
  &lt;sequence&gt;
  &lt;element name="regFirstName" type="xsd:string"/&gt;
  &lt;element name="regLastName" type="xsd:string"/&gt;
  &lt;element name="regLoginName" type="xsd:string"/&gt;
  &lt;element name="regPassword" type="xsd:string"/&gt;
  &lt;element name="regAddress" type="xsd:string"/&gt;
  &lt;element name="regPhone" type="xsd:string"/&gt;
  &lt;element name="regEmail" type="xsd:string"/&gt;
  &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;/element&gt;
  &lt;element name="registerResponse"&gt;
  &lt;complexType&gt;
  &lt;sequence&gt;
  &lt;element name="registerReturn" type="xsd:boolean"/&gt;
  &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;/element&gt;
  &lt;element name="isUserExists"&gt;
  &lt;complexType&gt;
  &lt;sequence&gt;
  &lt;element name="userName" type="xsd:string"/&gt;
  &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;/element&gt;
  &lt;element name="isUserExistsResponse"&gt;
  &lt;complexType&gt;
  &lt;sequence&gt;
  &lt;element name="isUserExistsReturn" type="xsd:boolean"/&gt;
  &lt;/sequence&gt;
  &lt;/complexType&gt;
  &lt;/element&gt;
  &lt;/schema&gt;
  &lt;/wsdl:types&gt;
  &lt;wsdl:message name="isUserExistsResponse"&gt;
  &lt;wsdl:part element="impl:isUserExistsResponse" name="parameters"&gt;&lt;/wsdl:part&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="registerRequest"&gt;
  &lt;wsdl:part element="impl:register" name="parameters"&gt;&lt;/wsdl:part&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="isUserExistsRequest"&gt;
  &lt;wsdl:part element="impl:isUserExists" name="parameters"&gt;&lt;/wsdl:part&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="registerResponse"&gt;
  &lt;wsdl:part element="impl:registerResponse" name="parameters"&gt;&lt;/wsdl:part&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:portType name="ElectronicArenaWebService"&gt;
  &lt;wsdl:operation name="register"&gt;
  &lt;wsdl:input message="impl:registerRequest" name="registerRequest"&gt;&lt;/wsdl:input&gt;
  &lt;wsdl:output message="impl:registerResponse" name="registerResponse"&gt;&lt;/wsdl:output&gt;
  &lt;/wsdl:operation&gt;
  &lt;wsdl:operation name="isUserExists"&gt;
  &lt;wsdl:input message="impl:isUserExistsRequest" name="isUserExistsRequest"&gt;&lt;/wsdl:input&gt;
  &lt;wsdl:output message="impl:isUserExistsResponse" name="isUserExistsResponse"&gt;&lt;/wsdl:output&gt;
  &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  &lt;wsdl:binding name="ElectronicArenaWebServiceSoapBinding" type="impl:ElectronicArenaWebService"&gt;
  &lt;wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
  &lt;wsdl:operation name="register"&gt;
  &lt;wsdlsoap:operation soapAction=""/&gt;
  &lt;wsdl:input name="registerRequest"&gt;
  &lt;wsdlsoap:body use="literal"/&gt;
  &lt;/wsdl:input&gt;
  &lt;wsdl:output name="registerResponse"&gt;
  &lt;wsdlsoap:body use="literal"/&gt;
  &lt;/wsdl:output&gt;
  &lt;/wsdl:operation&gt;
  &lt;wsdl:operation name="isUserExists"&gt;
  &lt;wsdlsoap:operation soapAction=""/&gt;
  &lt;wsdl:input name="isUserExistsRequest"&gt;
  &lt;wsdlsoap:body use="literal"/&gt;
  &lt;/wsdl:input&gt;
  &lt;wsdl:output name="isUserExistsResponse"&gt;
  &lt;wsdlsoap:body use="literal"/&gt;
  &lt;/wsdl:output&gt;
  &lt;/wsdl:operation&gt;
  &lt;/wsdl:binding&gt;
  &lt;wsdl:service name="ElectronicArenaWebServiceService"&gt;
  &lt;wsdl:port binding="impl:ElectronicArenaWebServiceSoapBinding" name="ElectronicArenaWebService"&gt;
  &lt;wsdlsoap:address location="http://localhost:8080/ElectronicArenaLena/services/ElectronicArenaWebService"/&gt;
  &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  &lt;/wsdl:definitions&gt;
  </code></pre>