I have put the WebService file into the axis webapps\axis like a jws
import java.util.*; public class SSLSoapWsdlServer { public String getPrime(String strangeString) { Calendar rightNow = Calendar.getInstance(); return "Prime time is: " + rightNow.getTime().toString(); } }
The error I get when I try to execute the client looks like:
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle). log4j:WARN Please initialize the log4j system properly. AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (401)Unauthorized faultActor: faultNode: faultDetail: {}:return code: 401 <html><head><title>Apache Tomcat/5.5.9 - Error report</titl e><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;bac kground-color:#525D76;font -size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;c olor:white;background-color:#525D76;font -size:16px;} H3 {font-family:Tahoma,Aria l,sans-serif;color:white;background-color:#525D76;font -size:14px;} BODY {font-fa mily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family :Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:T ahoma,Arial,sans-serif;background:white;color:black;font-size:12 px;}A {color : b lack;}A.name {color : black;}HR {color : #525D76;}--></style> </head ><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>ty pe</b> Status report&l t;/p><p><b>message</b 8;gt; <u></u></p><p&g t;< b>description</b> <u>This request requires HTTP authenticat ion ().</u></p><HR size="1" noshade="noshade" ><h3>Apache Tomcat/5.5.9</h3></body></html> {http://xml.apache.org/axis/}HttpErrorCode:401
(401)Unauthorized at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:693) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:141)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2754) at org.apache.axis.client.Call.invoke(Call.java:2737) at org.apache.axis.client.Call.invoke(Call.java:2413) at org.apache.axis.client.Call.invoke(Call.java:2336) at org.apache.axis.client.Call.invoke(Call.java:1793) at SSLSoapWsdlClient.<init>(SSLSoapWsdlClient.java:27) at SSLSoapWsdlClient.main(SSLSoapWsdlClient.java:39) Tryck på en valfri tangent för att fortsätta...
Your picture has moved, but it sounds like its a realm login prompt. The username and password you have to enter in order to view it in a browser need to be entered in the code too. You'll need lines like this.