You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Ali, Haneef" <ha...@hp.com> on 2007/08/20 05:05:09 UTC

Hostname of webserver instead of application server in wsdl address

Hi,
 I have my webservice deployed in weblogic. My webservice is developed
using wsdl first option, so I have the setting as modifyPortAddress =
true. My webservice is fronted by  IIS webserver.  How to get the
hostname/ipaddress of the IIS server in the wsdl. Axis always generates
hostname/ip address of application server.

1) Also I don't want to hardcode this in any xml file, since I will be
deploying the same war file in many application servers. I believe this 

2) Using Axis2_1.3 is not an option, since it is broken. If the wsdl
operation has a fault, then the generated code doesn't even compile. The
generated exception class doesn't implement java.lang.Throwable.  I have
filed a JIRA issue for this.


Thanks
Haneef
 

________________________________

From: Raghu Upadhyayula [mailto:rupadhyayula@responsys.com] 
Sent: Friday, August 17, 2007 10:27 AM
To: axis-user@ws.apache.org
Subject: RE: WSDL2Java is not creating the classes!



Hi Krithika,

 

Your email is confusing to me.

 

In your email subject you said that "WSDL2Java is not creating the
classes" and below in your email body, you are also saying that "Though
the java source files are created inside the samples/stock/client
directory. Am I missing anything?"

 

The java files are getting created right? So what is the issue here?
Can you explain it in detail.

 

Thanks

Raghu

 

-----Original Message-----
From: Krithika [mailto:krimee_2000@yahoo.com] 
Sent: Friday, August 17, 2007 8:19 AM
To: axis-user@ws.apache.org
Subject: WSDL2Java is not creating the classes!

 

 

Hi,

 

  I'm following the documentation in
http://ws.apache.org/wss4j/axis.html .

And I'm successful in setting up Axis 1.2/. I have installed WSS4J and
have

created and deployed the service (stock-wss-01).

 

In the step which talks about "Creating the Client" the doc says :

 

Use WSDL2Java to generate the client service bindings:

java org.apache.axis.wsdl.WSDL2Java -o .

-Nhttp://fox:8080/axis/services/stock-wss-01 samples.stock.client

http://fox:8080/axis/services/stock-wss-01?wsdl

  A bunch of java classes will be created under samples/stock/client,

including the StockQuoteServiceServiceLocator.

 

I guess the url should have localhost (instead of fox). When I execute
this

command, the class are not  getting created. Though the java source
files

are created inside the samples/stock/client directory. Am I missing

anything?

 

My class path is this :

 

CLASSPATH=.;C:\MyServlets;C:\Program Files\Apache Software
Foundation\Tomcat

5.5

\common\lib\servlet-api.jar;C:\Program Files\Apache Software

Foundation\Tomcat 5

.5\common\lib\jsp- api.jar;C:\Program

Files\Java\jdk1.5.0_12\lib\tools.jar;C:\Pro

gram

Files\Java\jre1.5.0_12\lib\ext\QTJava.zip;C:\axis\lib\axis.jar;C:\axis\l
ib\

commons-discovery-0.2.jar;C:\axis\lib\commons-logging-1.0.4.jar;C:\axis\
lib\jaxr

pc.jar;C:\axis\lib\saaj.jar;C:\axis\lib\log4j-1.2.8.jar;C:\axis\lib\xml-
apis.jar

;C:\axis\lib\xerces.jar;C:\axis\lib\activation.jar;C:\axis\lib\wsdl4j-1.
5.1.jar;

C:\axis;C:\axis\lib\log4j.properties;

 

Any pointers on this would be highly appreciated. 

-- 

View this message in context:
http://www.nabble.com/WSDL2Java-is-not-creating-the-classes%21-tf4286366
.html#a12201527

Sent from the Axis - User mailing list archive at Nabble.com.

 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org

For additional commands, e-mail: axis-user-help@ws.apache.org

 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org