Dear Alexander
Thanks for all your help! The problem was solved when I added a config.wssd
file copied from the ws-war folder within the samples.
Wayne
--- "Alexander Black (Macromedia-TS)" <[EMAIL PROTECTED]> wrote:
> Hi Wayne,
>
> I had sent you an email earlier via: [EMAIL PROTECTED] because I was
> experiencing problems with my houseoffusion subscription.
>
> Nevertheless, the code for HelloWorld.jws is ok. The problem is coming from
> the JSP client, could you add these 2 lines to the end of ws_HelloWorld.jsp:
>
> <% call.setOperationName("getDateToday");%>
>
> <%=call.invoke(new Object[] {})%>
>
> Hope this helps.
> Please don't hesitate to ask if you have any more questions.
>
> Regards,
> Alex
> ----- Original Message -----
> From: "Wayne Davies" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 27, 2002 3:58 AM
> Subject: web services and jrun
>
>
>
> > I have been trying to run the web services example as shown in the great
> video
> > on the macromedia site. However, i keep on geting the dreaded 'Page
> cannot be
> > displayed message'! Here is what I have done so far:
> >
> > Saved as HelloWorld.jws under the web root
> >
> > import java.util.*;
> > public class HelloWorld
> > {
> > String helloWorld= "Hello world";
> > Date currentTime=new java.util.Date(System.currentTimeMillis());
> >
> > public String getHelloWorldString()
> > {
> > return helloWorld;
> > }
> > public String getCurrentTime()
> > {
> > return currentTime.toString();
> > }
> > }
> >
> > and this as ws_HelloWorld.jsp in the same folder
> >
> > <%@page
> >
> import="org.apache.axis.client.Call,org.apache.axis.client.Service,org.apach
>
> e.axis.encoding.XMLType"
> > %>
> >
> > <%
> > String URL = "http://"+request.getServerName() + ":" +
> request.getServerPort()
> > + "/WebServeTest/HelloWorld.jws";
> > %>
> > <%
> > Service service = new Service();
> > Call call = (Call)service.createCall();
> > call.setTargetEndpointAddress(new java.net.URL(URL));
> >
> > call.setOperationName("getHelloWorldString");
> > call.setReturnType(XMLType.XSD_STRING);
> > %>
> >
> > <%= call.invoke(new Object[] {}) %>
> >
> > This should have merely returned the helloWorld string when run, as
> > demonstrated in the video.
> >
> > Where am I going wrong?
> >
> > Wayne Davies
> >
> >
> >
> >
> > =====
> > Sydney Real Tennis Club
> >
> > Phone: 02 9850 9495
> > Email: [EMAIL PROTECTED]
> > Web: http://www.yeti.com.au/srtc
> >
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists