Sure. Here is my solution: in Step4 do as follow: 4. Deploy the service onto my web-app with: org.apache.axis.wsdl.AdminClient lhttp://localhost:8080/myWebApp/services/WidgetPrice deploy.wsdd
That means, you have to add the param "lhttp://localhost:8080/myWebApp/services/WidgetPrice" to run the Axis AdminClient against your own webapp, instead of Axis, by changing the URL you invoke it with. Hope this help. Regards Thomas Demetris G <[EMAIL PROTECTED]> schrieb: Thomas - that's great - but always try to share the solutions with the list to help someone else that may have the same problem. Much appreciated. Thomas Chang wrote: > Hi all, > > I solved my problem myself. > > > > */Thomas Chang /* schrieb: > > Hi all, > > I downloaded and installed the axis-1.4. I did the example6 > "Java2WSDL: Building WSDL from Java" in the package and it runs > quite well. But in this example the web-service is deployed onto > axis. > > Now I try to deploy the same web-service onto my own web-app but > it failed. I've embeded the axis into my own web-app by copying > all the sevlet and their mapping to my web.xml. > > I do as follow: > > 1. Provide a Java interface > public interface WidgetPrice { > public void setWidgetPrice(String widgetName, String price); > public String getWidgetPrice(String widgetName); > } > > 2. Create WSDL using Java2WSDL as follow: > java org.apache.axis.wsdl.Java2WSDL -o wp.wsdl > -l"http://localhost:8080/myWebApp/services/WidgetPrice" -n > "urn:Example6" > -p"samples.userguide.example6" "urn:Example6" > samples.userguide.example6.WidgetPrice > > A "wp.wsdl" -file is created. > > > 3. Create Bindings using WSDL2Java with: > java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -S true > -Nurn:Example6 samples.userguide.example6 wp.wsdl > > Several .java files and the deploy.wsdd, undeploy.wsdd are created. > > 4. Deploy the service onto my web-app with: > java org.apache.axis.wsdl.AdminClient deploy.wsdd > > But after deployment I found the web-service is not deployed onto > my own web-app but onto the axis though in step2 I've defined the > server location is "http://localhost:8080/myWebApp/services...". > > Could someone tell me the reason? > > Regards > > Thomas > > ------------------------------------------------------------------------ > Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie > Yahoo! zu Ihrer Startseite! > > > > ------------------------------------------------------------------------ > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen > Sie“s mit dem neuen Yahoo! Mail > . --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.
