RE: Axis2 webservice - access to existing application classes outside of axis service/repository tree

2009-03-31 Thread dimension123
As I have come to learn, what I am trying to do is not possible without a
custom deployer.  I've opted instead to embed axis so that we do not have to
worry about packaging the same jars and dependent classes for every service
that requires them.

I do wish there was a single jar that could be used for embedding axis2
however.  Right now we have to extract the lib and modules directory from
the war during the build, and if we want to provide the listServices and
admin functionality, the axis2_web directory as well.

Still, better than having to having to worry about duplicate jars and
classes for ever service that might use an existing code base.

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Saturday, March 28, 2009 1:15 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 webservice - access to existing application classes
outside of axis service/repository tree

Hi ,

> It appears that axis2 requires you to place your webservice's source in
> addition to ALL libraries or classes that that service interacts with
under
>
> webapps/axis2/WEB-INF/services.

What do you mean "webservice's source here ...?



> Or is there a way to configure axis so that we do not have to deploy under
> the axis2/ tree, but instead tell it where the class files that will act
as
> the service is located in the existing app?

It seems you already running your application as  a .WAR format , you
can integrate Axis2 under your existing application by editing web.xml
and placing required meta data files, not required to bring your
existing  application under the axis2/ tree. please refer [1]


[1] - http://www.developer.com/open/article.php/3777111

Thanks ,

-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/



JAVA2WSDL -l option (HTTPS)

2009-03-31 Thread kumaresan.balasundaram
Hi,

We are using  apache axis 1.2 java2wsdl to generate the WSDL, when we specify

java2wsdl  -l http:\\url..  ->  WSDL is getting genrated with the specified 
port address
-   

-   

  http://url />
  
-   

  http://url/ />
  
-   

  http://url/ />
  
  

but when we give

java2wsdl -l https:\\url -> WSDL is getting generated but it doesnt have the 
port address and location info.
hence we run the WSDL2JAVA -> we are getting an error " ERROR parsing WSDL".


Any help on this would be appreciable.

Thanks,
Kumar.

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com


Re: Spring application made available as a web service through Axis2

2009-03-31 Thread robert lazarski
On Tue, Mar 31, 2009 at 6:43 PM, robert lazarski
 wrote:
> - Show quoted text -
>
> And instantiate it somehow and log its output. A servlet with
> load-on-startup is one common way, your app may have another. If the
> missing class is actually a Service class, or you want to see the
> entire classloader layout, this link may show you its location:
>
> http://localhost:8080/penguin/axis2-web/HappyAxis.jsp
>
> - R
>

On your system that could be:

http://localhost:8080/axis2/axis2-web/HappyAxis.jsp

- R


Re: Spring application made available as a web service through Axis2

2009-03-31 Thread robert lazarski
- Show quoted text -

On Tue, Mar 31, 2009 at 5:50 PM, Azazel Se  wrote:
> Hi again.
> Everything which has something to do with the spring application, including
> the apllication, are in jars and placed in the WEB-INF/lib folder.
> The context xml files are filled with bean id and properties which are used
> by the springapplication. The only thing I need from it I get through the
> 'main' api class. I'm completely new to spring so the idea was to hide it
> behind a thin wrapper.
>
> -Joey.

The error you get, "ClassNotFoundException: net.de.impl.WpiImpl" , is
clearly saying that class is not in your classloader somehow. I'd
check thoroughly that its where you think it is.

If you're still stuck, and the app is running but axis2 / spring are
not, try putting this in net.de.impl.WpiImpl:

this.getClass().getProtectionDomain().getCodeSource().getLocation());

And instantiate it somehow and log its output. A servlet with
load-on-startup is one common way, your app may have another. If the
missing class is actually a Service class, or you want to see the
entire classloader layout, this link may show you its location:

http://localhost:8080/penguin/axis2-web/HappyAxis.jsp

- R


Re: DataHandler.getName() always returns 'MyByteArrayDataSource' if the ds is ByteArrayDataSource

2009-03-31 Thread Andreas Veithen
Probably this exception is caused by a misconfiguration: you set the
cacheAttachments parameter, but not sizeThreshold.

Andreas

On Mon, Mar 30, 2009 at 13:01, Chinmoy Chakraborty  wrote:
> Andreas,
>
> I am using Axis2 1.4.1 and I am using following AXIOM version:
>
> axiom-api-1.2.7.jar
> axiom-dom-1.2.7.jar
> axiom-impl-1.2.7.jar
>
> and
>
> axis2-saaj-1.4.jar
> axis2-saaj-api-1.4.jar
>
> I know these are old jars. Does the latest code fixes the issue? Please send
> me the url from where I can get AXIOM and SAAJ jars.
>
> Chinmoy
>
>
>
> On Sat, Mar 28, 2009 at 4:56 PM, Andreas Veithen 
> wrote:
>>
>> What is the exact version of Axis2 that you are using?
>>
>> Andreas
>>
>> On Fri, Mar 27, 2009 at 13:43, Chinmoy Chakraborty 
>> wrote:
>> > Andreas,
>> >
>> > Thanks for the explanation and it was good indeed for my understanding.
>> > i am
>> > now trying SwA to do the same. I have one question, I have a service
>> > that
>> > has DataHandler return type. Now when the service is invoked from the
>> > client
>> > end, in the server side I am adding an attachment to the MessageContext
>> > like
>> > this:
>> >
>> >     OperationContext operationContext = getOperationContext();
>> >     MessageContext outgoingMsg =
>> >
>> > operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
>> >     outgoingMsg.addAttachment(attachment.getContentType(),
>> > attachment);
>> >
>> > The service is also returns a datahandler. So basically I am returning a
>> > DataHandler as well as sending the same datahandler as an attachment
>> > (SwA).
>> > Is it possible to do so? Right now I am getting following exception when
>> > I
>> > try to invoke the service in the client end:
>> >
>> > org.apache.axis2.AxisFault
>> >  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> >  at
>> >
>> > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:90)
>> >  at
>> >
>> > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
>> >  at
>> >
>> > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>> >  at
>> >
>> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>> >  at
>> >
>> > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>> >
>> > Caused by: java.lang.NullPointerException
>> >  at
>> >
>> > org.apache.axis2.builder.BuilderUtil.createAttachmentsMap(BuilderUtil.java:505)
>> >  at
>> >
>> > org.apache.axis2.builder.MIMEBuilder.processDocument(MIMEBuilder.java:38)
>> >  at
>> >
>> > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:164)
>> >  at
>> >
>> > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
>> >  at
>> >
>> > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)
>> >  ... 49 more
>> >
>> > I have following code in the client to invoke the service:
>> >
>> > options.setProperty(Constants.Configuration.ENABLE_SWA,
>> > Constants.VALUE_TRUE);
>> >   options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS,
>> > Constants.VALUE_TRUE);
>> >   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>> >   ServiceClient sender = new ServiceClient();
>> >   OperationClient mepClient =
>> > sender.createClient(ServiceClient.ANON_OUT_IN_OP);
>> >   OMFactory fac = OMAbstractFactory.getOMFactory();
>> >   OMNamespace ns =
>> > fac.createOMNamespace("http://www.abc.com/webservice";, "ns");
>> >   MessageContext mc = new MessageContext();
>> >   SOAPEnvelope env = createEnvelope(ns, argNameList, args);
>> >   mc.setEnvelope(env);
>> >   for (int i = 0; i < attachmentList.size(); i++) {
>> >   DataHandler dh = (DataHandler) attachmentList.get(i);
>> >   mc.addAttachment(dh.getName(), dh);
>> >   }
>> >   try {
>> >   mepClient.setOptions(options);
>> >   mepClient.addMessageContext(mc);
>> >   mepClient.execute(true);
>> >   } catch (Exception e) {
>> >   e.printStackTrace();
>> >   }
>> > Chinmoy
>> >
>> >
>> >
>> >
>> > On Fri, Mar 27, 2009 at 4:37 AM, Andreas Veithen
>> > 
>> > wrote:
>> >>
>> >> Chinmoy,
>> >>
>> >> I would say that in the case of MTOM (SwA is different), it is
>> >> conceptually incorrect to assume that the DataSource name and content
>> >> type are preserved when the message is sent over the wire. The reason
>> >> is that MTOM defines a transformation between two different
>> >> representations of the same information model: one that encodes binary
>> >> data as base64 stored in a text node and one that encodes binary data
>> >> as MIME parts. Since in the first representation the name and content
>> >> type are unspecified, it would be wrong to assume that they are
>> >> meaningful in the second representation (otherwise the representations
>> >> would not be equivalent). In MTOM, conten

Cannot see service give 500 Error

2009-03-31 Thread Cyril Furtado
Hi
I  deployed axis1.4.1  on Tomcat 5.0 , using all the jars provided in the axis2 
lib , added jms,jar , used the /conf/axis2.xml
Using the samples/pojo put StockQuoteService.aar as given in samples under 
/services directory
I have configured web.xml to start the Axis2 servlet
I have checked almost everything, but I cannot see the service

Here is the log --

2009-03-31 13:37:15,761   DEBUG engine.AxisEngine   - 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] sendFault:null

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
pre-condition for Phase "MessageOut"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking phase 
"MessageOut"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
post-conditions for phase "MessageOut"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
pre-condition for Phase "Security"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking phase 
"Security"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
post-conditions for phase "Security"

2009-03-31 13:37:15,761   DEBUG addressing.EndpointReference- 
hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is 
Anonymous: true

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- contentType 
set from messageContext =null

2009-03-31 13:37:15,761   DEBUG om.OMOutputFormat   - Start 
getContentType: OMOutputFormat [ mimeBoundary =null rootContentId=null 
doOptimize=false doingSWA=false isSOAP11=false charSetEncoding=UTF-8 
xmlVersion=null contentType=null ignoreXmlDeclaration=false 
autoCloseWriter=true actionProperty=null optimizedThreshold=0]

2009-03-31 13:37:15,761   DEBUG om.OMOutputFormat   - 
getContentType= {application/soap+xml}   OMOutputFormat [ mimeBoundary =null 
rootContentId=null doOptimize=false doingSWA=false isSOAP11=false 
charSetEncoding=UTF-8 xmlVersion=null contentType=application/soap+xml 
ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null 
optimizedThreshold=0]

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- (NOTE) 
contentType from format is=application/soap+xml

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- contentType 
returned =application/xml; charset=UTF-8

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- start 
writeTo()

2009-03-31 13:37:15,761   DEBUG util.StAXUtils  - 
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- end writeTo()

2009-03-31 13:37:15,761   DEBUG transport.TransportUtils- Did not find 
RequestResponseTransport cannot set response written

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking 
flowComplete() in Phase "Security"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking 
flowComplete() in Phase "MessageOut"

Please let me know whats wrong
Thanks
Cyril



RE: Spring application made available as a web service through Axis2

2009-03-31 Thread Azazel Se

Hi again.

Everything which has something to do with the spring application, including the 
apllication, are in jars and placed in the WEB-INF/lib folder.

The context xml files are filled with bean id and properties which are used by 
the springapplication. The only thing I need from it I get through the 'main' 
api class. I'm completely new to spring so the idea was to hide it behind a 
thin wrapper.

 

-Joey.

 

> Date: Tue, 31 Mar 2009 17:39:16 -0300
> Subject: Re: Spring application made available as a web service through Axis2
> From: robertlazar...@gmail.com
> To: axis-user@ws.apache.org
> 
> On Tue, Mar 31, 2009 at 5:30 PM, Azazel Se  wrote:
> > SEVERE: Exception sending context initialized event to listener instance of
> > class org.springframework.web.context.ContextLoaderListener
> > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> > class [--springappl---] for bean with name 'appl.rted.Wpi' defined in
> > ServletContext resource [/WEB-INF/context-parts/basic-profile.xml]; nested
> > exception is java.lang.ClassNotFoundException: net.de.impl.WpiImpl
> > Caused by: java.lang.ClassNotFoundException: net.de.impl.wpiImpl
> 
> Um, maybe put net.de.impl.WpiImpl in WEB_INF/classes or if its in a
> jar, put the jar in WEB_INF/lib ?
> 
> - R


_
Få Windows Live Messenger på mobilen.
http://windowslivemobile.msn.com/Homepage.aspx?lang=nb-no&ocid=30032

Re: Spring application made available as a web service through Axis2

2009-03-31 Thread robert lazarski
On Tue, Mar 31, 2009 at 5:30 PM, Azazel Se  wrote:
> SEVERE: Exception sending context initialized event to listener instance of
> class org.springframework.web.context.ContextLoaderListener
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [--springappl---] for bean with name 'appl.rted.Wpi' defined in
> ServletContext resource [/WEB-INF/context-parts/basic-profile.xml]; nested
> exception is java.lang.ClassNotFoundException: net.de.impl.WpiImpl
> Caused by: java.lang.ClassNotFoundException: net.de.impl.wpiImpl

Um, maybe put net.de.impl.WpiImpl in WEB_INF/classes or if its in a
jar, put the jar in WEB_INF/lib ?

- R


RE: Spring application made available as a web service through Axis2

2009-03-31 Thread Azazel Se

Sorry. Yes I have been using the axis guides at the apache site, for instance: 
http://ws.apache.org/axis2/1_3/spring.html

Last two attempts I tried with SpringServletContextObjectSupplier first and 
then SpringAppContextAwareObjectSupplier in the services.xml file.

And tried to get the context into the web service class and instatiated the 
spring application with through org.springframework.context.ApplicationContext 
and the method ApplicationContextHolder.getContext().

I then got the error below.

I've tried a few different layouts. Last times:

 

WEB-INF/
. classes/
..  mApp/

...  myAppl.class
.  context-parts/
..  -several context xml files
.  lib/ 
.. -spring axis etc etc
.  services/ 
.  wSer/
..   services.xml
.  context.xml  (imports from the xml to the context folder)
.  plat.properties
.  web.xml

 

 

org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of 
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
class [--springappl---] for bean with name 'appl.rted.Wpi' defined in 
ServletContext resource [/WEB-INF/context-parts/basic-profile.xml]; nested 
exception is java.lang.ClassNotFoundException: net.de.impl.WpiImpl
Caused by: java.lang.ClassNotFoundException: net.de.impl.wpiImpl
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
 at org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
 at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:325)
 at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1033)
 at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:274)
 at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
 at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241)
 at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
 at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
 at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
 at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
 at 
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:604)
 at 
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:129)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
 
> Date: Tue, 31 Mar 2009 17:01:32 -0300
> Subject: Re: Spring application made available as a web service through Axis2
> From: robertlazar...@gmail.com
> To: axis-user@ws.apache.org
> 
> On Tue, Mar 31, 2009 at 4:40 PM, Joey S.  wrote:
> >
> > It works as wanted, but as mentioned I want it available as a web service.
> > Considering all the problems with Spring and Axis2 together what is the
> > easiest way to make a web service out off it? I have used quite some time
> > trying the different stuff from the tutorial, but cannot get it to work.
> >
> > -Joey
> >
> 
> You mean the spring / axis2 tutorial at the axis2 site? If you could
> be more specific than "but cannot get it to work" maybe we can help.
> If you already have spring up, getting it plugged into axis2 isn't
> much harder.
> 
> - R


AxisFault namespace mismatch require

2009-03-31 Thread bandrm

Hello, 

I developed a simple web service using predominantly ant build script. The
web service is deployed in tomcat and it is working fine. I have generated
wsdl using using ant tool (Class org.apache.axis2.tool.ant.Java2WSDLTask). 

I developed client and consumed this wsdl. Now, when I execute the client
program, I get the following exception. This might be elementary, but would
like to get it resolved. 

485 ERROR org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception
occurred while trying to invoke service method sayHello
org.apache.axis2.AxisFault: namespace mismatch require
http://hello.axis2.com/xsd found http://hello.axis2.com at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:103)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144) at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)


-- 
View this message in context: 
http://www.nabble.com/AxisFault-namespace-mismatch-require-tp22811514p22811514.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Spring application made available as a web service through Axis2

2009-03-31 Thread robert lazarski
On Tue, Mar 31, 2009 at 4:40 PM, Joey S.  wrote:
>
> It works as wanted, but as mentioned I want it available as a web service.
> Considering all the problems with Spring and Axis2 together what is the
> easiest way to make a web service out off it? I have used quite some time
> trying the different stuff from the tutorial, but cannot get it to work.
>
> -Joey
>

You mean the spring / axis2 tutorial at the axis2 site? If you could
be more specific than "but cannot get it to work" maybe we can help.
If you already have spring up, getting it plugged into axis2 isn't
much harder.

- R


Spring application made available as a web service through Axis2

2009-03-31 Thread Joey S .

Hi.

I have an application which I want to build a small wrapper around and make a 
couple of the methods available as a web service in Axis2. I don't know much 
about the inner workings of it, but it uses spring, hibernate etc which makes 
it abit difficult. It expects the context.xml file as parameter when 
instatiated. I have made the web.xml as in the axis2-spring tutorial:

 



org.springframework.web.context.ContextLoaderListener


  contextConfigLocation
  context.xml


 

And as a test I made a jsp file with the following startcode to see that it 
worked:
Application ap = new 
Application(WebApplicationContextUtils.getWebApplicationContext(getServletContext()));



It works as wanted, but as mentioned I want it available as a web service. 
Considering all the problems with Spring and Axis2 together what is the easiest 
way to make a web service out off it? I have used quite some time trying the 
different stuff from the tutorial, but cannot get it to work.

 

-Joey


_
Mest sett denne måneden på MSN Video.
http://video.msn.com/?mkt=nb-no&from=HMTAG

Re: JiBX and attachments

2009-03-31 Thread Andreas Veithen
I'm not very familiar with the databinding stuff in Axis2, but I know
something about MTOM in Axis2. Maybe you can illustrate your point by
some code snippets?

Andreas

On Tue, Mar 31, 2009 at 11:10, Stephan A. Maciej
 wrote:
> Hi,
>
> is it possible to use JiBX and, at the same time MTOM, i.e. use attachments
> for transfering large blobs from and to an Axis2 web service?
>
> To me it looks like JiBX isn't able to handle the externalization of blobs
> into attachments natively. So I've tried writing a custom JiBX
> marshaller/unmarshaller helper class for handling Java objects that
> represent blobs.
>
> From what I've seen in the stub code generated by wsdl2java, a
> MessageContext is created before the marshalling takes place. MessageContext
> does have an addAttachment method, so I tried to simply call that method
> from my marshalling helper. However, that doesn't work because I have no
> access to the current message context
> (MessageContext.getCurrentMessageContext() returns null).
>
> So, what would be if the stub code generated by wsdl2java would expose the
> MessageContext to marshalling code? I haven't tried hand-editing the stub
> code yet, because I'm unsure if this scenario would actually lead to a
> working (and sane) mechanism to generate attachments for generated SOAP
> messages. Would it?
>
> Thanks,
>
> Stephan
>
> 
> This message was sent using IMP, the Internet Messaging Program.
>
>


RE: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
Hmm, what is the location of axis2.xml? 

-Original Message-
From: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Sent: Tuesday, March 31, 2009 11:37 AM
To: axis-user@ws.apache.org
Subject: Re: How do we configure Axis to write the proper host name in the WSDL 
that it generates?

In Axis2, the host name can be specified using the "hostname"
parameter in axis2.xml. This name is used to compute the endpoint URLs
in generated WSDLs. If the WSDL is user supplied, the service
parameter "modifyUserWSDLPortAddress" can be used to get the same
result.

Andreas

On Tue, Mar 31, 2009 at 17:31, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> Okay, thanks Andreas. Do you know how it is done with Axis2? Maybe it's the 
> same with Axis 1.x
> -Ramez
>
> -Original Message-
> From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Sent: Tuesday, March 31, 2009 10:59 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do we configure Axis to write the proper host name in the 
> WSDL that it generates?
>
> I'm not familiar with Axis 1.x (only with Axis2). Maybe somebody else
> on this list?
>
> Andreas
>
> On Tue, Mar 31, 2009 at 15:59, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>  wrote:
>> Ah, sounds like I have the numbers wrong. I do know that we have Axis 1.x 
>> for Java. Can you please tell me how to find out the version number for sure?
>>
>> And, back to my initial question: How do I configure Axis to write the 
>> proper host name in all those namespace attributes inside the WSDL?
>>
>> -Ramez
>>
>> 
>> From: Andreas Veithen [andreas.veit...@gmail.com]
>> Sent: Tuesday, March 31, 2009 9:31 AM
>> To: axis-user@ws.apache.org
>> Subject: Re: How do we configure Axis to write the proper host name in the   
>>    WSDL that it generates?
>>
>> The last released version of Axis for Java is 1.4. Note that there is
>> also Axis2 1.4.1.
>>
>> Andreas
>>
>> On Tue, Mar 31, 2009 at 15:08, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>  wrote:
>>> I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely 
>>> for Java. All of our web services are written in Java.
>>> -Ramez
>>>
>>> 
>>> From: Andreas Veithen [andreas.veit...@gmail.com]
>>> Sent: Tuesday, March 31, 2009 6:52 AM
>>> To: axis-user@ws.apache.org
>>> Subject: Re: How do we configure Axis to write the proper host name in the  
>>>     WSDL that it generates?
>>>
>>> Ramez,
>>>
>>> I guess you are talking about Axis/C. If this is the case, you posted
>>> your message on the wrong mailing list, as this is the list for Axis
>>> for Java.
>>>
>>> Andreas
>>>
>>> On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>>  wrote:
 Hi all,



 If anyone knows for sure that this cannot be done in Axis 1.6 please let me
 know so that I stop hoping/waiting for a solution.



 Cheers,

 -Ramez



 

 From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 Sent: Friday, March 27, 2009 5:13 PM
 To: axis-user@ws.apache.org
 Subject: How do we configure Axis to write the proper host name in the WSDL
 that it generates?



 Hi,



 Can anyone please tell me what to change in my existing installation of 
 Axis
 1.6 in order for it to write the proper host name instead of the generic
 localhost:8080 in the WSDL that it generates?



 I am developing a public web service, and I want people to be able to get
 the latest WSDL dynamically by accessing the URL of my service's WSDL as
 http://host_name/path/service_name?wsdl where host_name is the real server
 name (and port) of my server rather than localhost:8080



 Currently the solution that I am using is to get the WSDL, edit it to
 replace "localhost:8080" with my host name, save it in a public folder, and
 advertise that file as being the location for my web app's WSDL. The
 downside of this solution is that the advertised WSDL can often fall out of
 sync with the latest edition of the web app deployed.



 I was unable to find an answer to this question anywhere on the Internet.



 Note that I am using Axis 1.6



 Thanks.




>


Re: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Andreas Veithen
In Axis2, the host name can be specified using the "hostname"
parameter in axis2.xml. This name is used to compute the endpoint URLs
in generated WSDLs. If the WSDL is user supplied, the service
parameter "modifyUserWSDLPortAddress" can be used to get the same
result.

Andreas

On Tue, Mar 31, 2009 at 17:31, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> Okay, thanks Andreas. Do you know how it is done with Axis2? Maybe it's the 
> same with Axis 1.x
> -Ramez
>
> -Original Message-
> From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Sent: Tuesday, March 31, 2009 10:59 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do we configure Axis to write the proper host name in the 
> WSDL that it generates?
>
> I'm not familiar with Axis 1.x (only with Axis2). Maybe somebody else
> on this list?
>
> Andreas
>
> On Tue, Mar 31, 2009 at 15:59, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>  wrote:
>> Ah, sounds like I have the numbers wrong. I do know that we have Axis 1.x 
>> for Java. Can you please tell me how to find out the version number for sure?
>>
>> And, back to my initial question: How do I configure Axis to write the 
>> proper host name in all those namespace attributes inside the WSDL?
>>
>> -Ramez
>>
>> 
>> From: Andreas Veithen [andreas.veit...@gmail.com]
>> Sent: Tuesday, March 31, 2009 9:31 AM
>> To: axis-user@ws.apache.org
>> Subject: Re: How do we configure Axis to write the proper host name in the   
>>    WSDL that it generates?
>>
>> The last released version of Axis for Java is 1.4. Note that there is
>> also Axis2 1.4.1.
>>
>> Andreas
>>
>> On Tue, Mar 31, 2009 at 15:08, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>  wrote:
>>> I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely 
>>> for Java. All of our web services are written in Java.
>>> -Ramez
>>>
>>> 
>>> From: Andreas Veithen [andreas.veit...@gmail.com]
>>> Sent: Tuesday, March 31, 2009 6:52 AM
>>> To: axis-user@ws.apache.org
>>> Subject: Re: How do we configure Axis to write the proper host name in the  
>>>     WSDL that it generates?
>>>
>>> Ramez,
>>>
>>> I guess you are talking about Axis/C. If this is the case, you posted
>>> your message on the wrong mailing list, as this is the list for Axis
>>> for Java.
>>>
>>> Andreas
>>>
>>> On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>>  wrote:
 Hi all,



 If anyone knows for sure that this cannot be done in Axis 1.6 please let me
 know so that I stop hoping/waiting for a solution.



 Cheers,

 -Ramez



 

 From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 Sent: Friday, March 27, 2009 5:13 PM
 To: axis-user@ws.apache.org
 Subject: How do we configure Axis to write the proper host name in the WSDL
 that it generates?



 Hi,



 Can anyone please tell me what to change in my existing installation of 
 Axis
 1.6 in order for it to write the proper host name instead of the generic
 localhost:8080 in the WSDL that it generates?



 I am developing a public web service, and I want people to be able to get
 the latest WSDL dynamically by accessing the URL of my service's WSDL as
 http://host_name/path/service_name?wsdl where host_name is the real server
 name (and port) of my server rather than localhost:8080



 Currently the solution that I am using is to get the WSDL, edit it to
 replace "localhost:8080" with my host name, save it in a public folder, and
 advertise that file as being the location for my web app's WSDL. The
 downside of this solution is that the advertised WSDL can often fall out of
 sync with the latest edition of the web app deployed.



 I was unable to find an answer to this question anywhere on the Internet.



 Note that I am using Axis 1.6



 Thanks.




>


RE: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
Okay, thanks Andreas. Do you know how it is done with Axis2? Maybe it's the 
same with Axis 1.x 
-Ramez 

-Original Message-
From: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Sent: Tuesday, March 31, 2009 10:59 AM
To: axis-user@ws.apache.org
Subject: Re: How do we configure Axis to write the proper host name in the WSDL 
that it generates?

I'm not familiar with Axis 1.x (only with Axis2). Maybe somebody else
on this list?

Andreas

On Tue, Mar 31, 2009 at 15:59, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> Ah, sounds like I have the numbers wrong. I do know that we have Axis 1.x for 
> Java. Can you please tell me how to find out the version number for sure?
>
> And, back to my initial question: How do I configure Axis to write the proper 
> host name in all those namespace attributes inside the WSDL?
>
> -Ramez
>
> 
> From: Andreas Veithen [andreas.veit...@gmail.com]
> Sent: Tuesday, March 31, 2009 9:31 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do we configure Axis to write the proper host name in the    
>   WSDL that it generates?
>
> The last released version of Axis for Java is 1.4. Note that there is
> also Axis2 1.4.1.
>
> Andreas
>
> On Tue, Mar 31, 2009 at 15:08, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>  wrote:
>> I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely 
>> for Java. All of our web services are written in Java.
>> -Ramez
>>
>> 
>> From: Andreas Veithen [andreas.veit...@gmail.com]
>> Sent: Tuesday, March 31, 2009 6:52 AM
>> To: axis-user@ws.apache.org
>> Subject: Re: How do we configure Axis to write the proper host name in the   
>>    WSDL that it generates?
>>
>> Ramez,
>>
>> I guess you are talking about Axis/C. If this is the case, you posted
>> your message on the wrong mailing list, as this is the list for Axis
>> for Java.
>>
>> Andreas
>>
>> On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>  wrote:
>>> Hi all,
>>>
>>>
>>>
>>> If anyone knows for sure that this cannot be done in Axis 1.6 please let me
>>> know so that I stop hoping/waiting for a solution.
>>>
>>>
>>>
>>> Cheers,
>>>
>>> -Ramez
>>>
>>>
>>>
>>> 
>>>
>>> From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>> Sent: Friday, March 27, 2009 5:13 PM
>>> To: axis-user@ws.apache.org
>>> Subject: How do we configure Axis to write the proper host name in the WSDL
>>> that it generates?
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> Can anyone please tell me what to change in my existing installation of Axis
>>> 1.6 in order for it to write the proper host name instead of the generic
>>> localhost:8080 in the WSDL that it generates?
>>>
>>>
>>>
>>> I am developing a public web service, and I want people to be able to get
>>> the latest WSDL dynamically by accessing the URL of my service's WSDL as
>>> http://host_name/path/service_name?wsdl where host_name is the real server
>>> name (and port) of my server rather than localhost:8080
>>>
>>>
>>>
>>> Currently the solution that I am using is to get the WSDL, edit it to
>>> replace "localhost:8080" with my host name, save it in a public folder, and
>>> advertise that file as being the location for my web app's WSDL. The
>>> downside of this solution is that the advertised WSDL can often fall out of
>>> sync with the latest edition of the web app deployed.
>>>
>>>
>>>
>>> I was unable to find an answer to this question anywhere on the Internet.
>>>
>>>
>>>
>>> Note that I am using Axis 1.6
>>>
>>>
>>>
>>> Thanks.
>>>
>>>
>>>
>>>


Re: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Andreas Veithen
I'm not familiar with Axis 1.x (only with Axis2). Maybe somebody else
on this list?

Andreas

On Tue, Mar 31, 2009 at 15:59, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> Ah, sounds like I have the numbers wrong. I do know that we have Axis 1.x for 
> Java. Can you please tell me how to find out the version number for sure?
>
> And, back to my initial question: How do I configure Axis to write the proper 
> host name in all those namespace attributes inside the WSDL?
>
> -Ramez
>
> 
> From: Andreas Veithen [andreas.veit...@gmail.com]
> Sent: Tuesday, March 31, 2009 9:31 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do we configure Axis to write the proper host name in the    
>   WSDL that it generates?
>
> The last released version of Axis for Java is 1.4. Note that there is
> also Axis2 1.4.1.
>
> Andreas
>
> On Tue, Mar 31, 2009 at 15:08, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>  wrote:
>> I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely 
>> for Java. All of our web services are written in Java.
>> -Ramez
>>
>> 
>> From: Andreas Veithen [andreas.veit...@gmail.com]
>> Sent: Tuesday, March 31, 2009 6:52 AM
>> To: axis-user@ws.apache.org
>> Subject: Re: How do we configure Axis to write the proper host name in the   
>>    WSDL that it generates?
>>
>> Ramez,
>>
>> I guess you are talking about Axis/C. If this is the case, you posted
>> your message on the wrong mailing list, as this is the list for Axis
>> for Java.
>>
>> Andreas
>>
>> On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>  wrote:
>>> Hi all,
>>>
>>>
>>>
>>> If anyone knows for sure that this cannot be done in Axis 1.6 please let me
>>> know so that I stop hoping/waiting for a solution.
>>>
>>>
>>>
>>> Cheers,
>>>
>>> -Ramez
>>>
>>>
>>>
>>> 
>>>
>>> From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>>> Sent: Friday, March 27, 2009 5:13 PM
>>> To: axis-user@ws.apache.org
>>> Subject: How do we configure Axis to write the proper host name in the WSDL
>>> that it generates?
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> Can anyone please tell me what to change in my existing installation of Axis
>>> 1.6 in order for it to write the proper host name instead of the generic
>>> localhost:8080 in the WSDL that it generates?
>>>
>>>
>>>
>>> I am developing a public web service, and I want people to be able to get
>>> the latest WSDL dynamically by accessing the URL of my service’s WSDL as
>>> http://host_name/path/service_name?wsdl where host_name is the real server
>>> name (and port) of my server rather than localhost:8080
>>>
>>>
>>>
>>> Currently the solution that I am using is to get the WSDL, edit it to
>>> replace “localhost:8080” with my host name, save it in a public folder, and
>>> advertise that file as being the location for my web app’s WSDL. The
>>> downside of this solution is that the advertised WSDL can often fall out of
>>> sync with the latest edition of the web app deployed.
>>>
>>>
>>>
>>> I was unable to find an answer to this question anywhere on the Internet.
>>>
>>>
>>>
>>> Note that I am using Axis 1.6
>>>
>>>
>>>
>>> Thanks.
>>>
>>>
>>>
>>>


Axis2 1.3 issue with SSL - unable to find certificate chain

2009-03-31 Thread tvomalley

We have an issue when using SSL. Initially everything is fine, but eventually
our axis2 client gets the following exception sending a message to the
server over the CommonsHTTPTransportSender:

org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: PKIX
path building failed: java.security.cert.CertPathBuilderException: unable to
find certificate chain

Caused by: java.security.cert.CertPathBuilderException: unable to find
certificate chain
at org.bouncycastle.jce.provider.PKIXCertPathBuilderSpi.engineBuild(Unknown
Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)

Once the client hits this exception we have to restart the application, then
everything is fine for a while.

Any help will be appreciated.
Thanks,
~T
-- 
View this message in context: 
http://www.nabble.com/Axis2-1.3-issue-with-SSL---unable-to-find-certificate-chain-tp22804954p22804954.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
Ah, sounds like I have the numbers wrong. I do know that we have Axis 1.x for 
Java. Can you please tell me how to find out the version number for sure? 

And, back to my initial question: How do I configure Axis to write the proper 
host name in all those namespace attributes inside the WSDL? 

-Ramez 


From: Andreas Veithen [andreas.veit...@gmail.com]
Sent: Tuesday, March 31, 2009 9:31 AM
To: axis-user@ws.apache.org
Subject: Re: How do we configure Axis to write the proper host name in the  
WSDL that it generates?

The last released version of Axis for Java is 1.4. Note that there is
also Axis2 1.4.1.

Andreas

On Tue, Mar 31, 2009 at 15:08, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely for 
> Java. All of our web services are written in Java.
> -Ramez
>
> 
> From: Andreas Veithen [andreas.veit...@gmail.com]
> Sent: Tuesday, March 31, 2009 6:52 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do we configure Axis to write the proper host name in the
>   WSDL that it generates?
>
> Ramez,
>
> I guess you are talking about Axis/C. If this is the case, you posted
> your message on the wrong mailing list, as this is the list for Axis
> for Java.
>
> Andreas
>
> On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>  wrote:
>> Hi all,
>>
>>
>>
>> If anyone knows for sure that this cannot be done in Axis 1.6 please let me
>> know so that I stop hoping/waiting for a solution.
>>
>>
>>
>> Cheers,
>>
>> -Ramez
>>
>>
>>
>> 
>>
>> From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>> Sent: Friday, March 27, 2009 5:13 PM
>> To: axis-user@ws.apache.org
>> Subject: How do we configure Axis to write the proper host name in the WSDL
>> that it generates?
>>
>>
>>
>> Hi,
>>
>>
>>
>> Can anyone please tell me what to change in my existing installation of Axis
>> 1.6 in order for it to write the proper host name instead of the generic
>> localhost:8080 in the WSDL that it generates?
>>
>>
>>
>> I am developing a public web service, and I want people to be able to get
>> the latest WSDL dynamically by accessing the URL of my service’s WSDL as
>> http://host_name/path/service_name?wsdl where host_name is the real server
>> name (and port) of my server rather than localhost:8080
>>
>>
>>
>> Currently the solution that I am using is to get the WSDL, edit it to
>> replace “localhost:8080” with my host name, save it in a public folder, and
>> advertise that file as being the location for my web app’s WSDL. The
>> downside of this solution is that the advertised WSDL can often fall out of
>> sync with the latest edition of the web app deployed.
>>
>>
>>
>> I was unable to find an answer to this question anywhere on the Internet.
>>
>>
>>
>> Note that I am using Axis 1.6
>>
>>
>>
>> Thanks.
>>
>>
>>
>>

Re: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Andreas Veithen
The last released version of Axis for Java is 1.4. Note that there is
also Axis2 1.4.1.

Andreas

On Tue, Mar 31, 2009 at 15:08, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely for 
> Java. All of our web services are written in Java.
> -Ramez
>
> 
> From: Andreas Veithen [andreas.veit...@gmail.com]
> Sent: Tuesday, March 31, 2009 6:52 AM
> To: axis-user@ws.apache.org
> Subject: Re: How do we configure Axis to write the proper host name in the    
>   WSDL that it generates?
>
> Ramez,
>
> I guess you are talking about Axis/C. If this is the case, you posted
> your message on the wrong mailing list, as this is the list for Axis
> for Java.
>
> Andreas
>
> On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>  wrote:
>> Hi all,
>>
>>
>>
>> If anyone knows for sure that this cannot be done in Axis 1.6 please let me
>> know so that I stop hoping/waiting for a solution.
>>
>>
>>
>> Cheers,
>>
>> -Ramez
>>
>>
>>
>> 
>>
>> From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
>> Sent: Friday, March 27, 2009 5:13 PM
>> To: axis-user@ws.apache.org
>> Subject: How do we configure Axis to write the proper host name in the WSDL
>> that it generates?
>>
>>
>>
>> Hi,
>>
>>
>>
>> Can anyone please tell me what to change in my existing installation of Axis
>> 1.6 in order for it to write the proper host name instead of the generic
>> localhost:8080 in the WSDL that it generates?
>>
>>
>>
>> I am developing a public web service, and I want people to be able to get
>> the latest WSDL dynamically by accessing the URL of my service’s WSDL as
>> http://host_name/path/service_name?wsdl where host_name is the real server
>> name (and port) of my server rather than localhost:8080
>>
>>
>>
>> Currently the solution that I am using is to get the WSDL, edit it to
>> replace “localhost:8080” with my host name, save it in a public folder, and
>> advertise that file as being the location for my web app’s WSDL. The
>> downside of this solution is that the advertised WSDL can often fall out of
>> sync with the latest edition of the web app deployed.
>>
>>
>>
>> I was unable to find an answer to this question anywhere on the Internet.
>>
>>
>>
>> Note that I am using Axis 1.6
>>
>>
>>
>> Thanks.
>>
>>
>>
>>


Re: Help with wsdl2java

2009-03-31 Thread Frank Vyncke
On 31/03/2009 09:48, "Andreas Veithen"  wrote:

> Frank,
> 
> MTOM is a _transparent_ way of optimizing messages. Why does the WSDL
> explicitly reference xop:Include?

That is a very good question... And not one I can answer immediatly.

I am 'new' to MTOM, that is, I learned it about 2 months ago, and I learned
it through gSOAP. At the level of gSOAP (in C++), it is not transparent... I
think I see at that level the 'processed' message with it's attachments.

What you are saying is that the WSDL should in fact contain a binary blob
there, with mime type attribute, instead of the xop:Include object.

Makes sense, but then I have to investigate how I can make such a setup with
gSAOP (where I start from C++ classes...)

Thanks for the input

Frank
> 
> Andreas
> 
> On Mon, Mar 30, 2009 at 18:18, Frank Vyncke  wrote:
>> I,
>> 
>> Am starting to develop a 'client' for a gSOAP based server, using MTOM
>> attachments.
>> 
>> I have a wsdl file, but when I try to compile the wsdl file, I get an
>> exception with the following message:
>> 
>> Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
>> the element {http://www.w3.org/2004/08/xop/include}Include from the parent
>> schema http://www.genivia.com/schemas/mtom_stream_test.xsd
>> 
>> Can anyone tell me where this error comes from, because the wsdl file does
>> import the http://www.w3.org/2004/08/xop/include schema correctly (I think,
>> there is no way I can check if it really imported the schema or not).
>> 
>> Thanks
>> Frank
>> 
>> 



RE: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
I am using Axis 1.6 for Java, with Tomcat, on Linux.  But it's definitely for 
Java. All of our web services are written in Java. 
-Ramez 


From: Andreas Veithen [andreas.veit...@gmail.com]
Sent: Tuesday, March 31, 2009 6:52 AM
To: axis-user@ws.apache.org
Subject: Re: How do we configure Axis to write the proper host name in the  
WSDL that it generates?

Ramez,

I guess you are talking about Axis/C. If this is the case, you posted
your message on the wrong mailing list, as this is the list for Axis
for Java.

Andreas

On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> Hi all,
>
>
>
> If anyone knows for sure that this cannot be done in Axis 1.6 please let me
> know so that I stop hoping/waiting for a solution.
>
>
>
> Cheers,
>
> -Ramez
>
>
>
> 
>
> From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
> Sent: Friday, March 27, 2009 5:13 PM
> To: axis-user@ws.apache.org
> Subject: How do we configure Axis to write the proper host name in the WSDL
> that it generates?
>
>
>
> Hi,
>
>
>
> Can anyone please tell me what to change in my existing installation of Axis
> 1.6 in order for it to write the proper host name instead of the generic
> localhost:8080 in the WSDL that it generates?
>
>
>
> I am developing a public web service, and I want people to be able to get
> the latest WSDL dynamically by accessing the URL of my service’s WSDL as
> http://host_name/path/service_name?wsdl where host_name is the real server
> name (and port) of my server rather than localhost:8080
>
>
>
> Currently the solution that I am using is to get the WSDL, edit it to
> replace “localhost:8080” with my host name, save it in a public folder, and
> advertise that file as being the location for my web app’s WSDL. The
> downside of this solution is that the advertised WSDL can often fall out of
> sync with the latest edition of the web app deployed.
>
>
>
> I was unable to find an answer to this question anywhere on the Internet.
>
>
>
> Note that I am using Axis 1.6
>
>
>
> Thanks.
>
>
>
>

axis fault Error in extracting message properties

2009-03-31 Thread Håkon Sagehaug
Hi all

First of all I realize this is a difficult error to figure out, but I'm all
out of options so maybe some of you knows what to to.

I've got a service that is throwing a fault message if something wrong
happens, defined as an element like this









And the message definition looks like this




  

When it is thrown I always get this info line in the log

[INFO] org.apache.axis2.AxisFault: Error in extracting message properties

and then tomcat(v.6) is returning some HTML saying

"The server encountered an internal error () that prevented it from
fulfilling this request."

I've got no problem when my service don't need to throw the exception, and
made other services that have error handling and never experienced this
before, so I was wondering if anyone of you could guide me towards a
solution

Using axis2 1.4.1

cheers, Håkon


-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: How do we configure Axis to write the proper host name in the WSDL that it generates?

2009-03-31 Thread Andreas Veithen
Ramez,

I guess you are talking about Axis/C. If this is the case, you posted
your message on the wrong mailing list, as this is the list for Axis
for Java.

Andreas

On Mon, Mar 30, 2009 at 17:48, Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
 wrote:
> Hi all,
>
>
>
> If anyone knows for sure that this cannot be done in Axis 1.6 please let me
> know so that I stop hoping/waiting for a solution.
>
>
>
> Cheers,
>
> -Ramez
>
>
>
> 
>
> From: Ghazzaoui, Ramez (NIH/NLM/LHC) [C]
> Sent: Friday, March 27, 2009 5:13 PM
> To: axis-user@ws.apache.org
> Subject: How do we configure Axis to write the proper host name in the WSDL
> that it generates?
>
>
>
> Hi,
>
>
>
> Can anyone please tell me what to change in my existing installation of Axis
> 1.6 in order for it to write the proper host name instead of the generic
> localhost:8080 in the WSDL that it generates?
>
>
>
> I am developing a public web service, and I want people to be able to get
> the latest WSDL dynamically by accessing the URL of my service’s WSDL as
> http://host_name/path/service_name?wsdl where host_name is the real server
> name (and port) of my server rather than localhost:8080
>
>
>
> Currently the solution that I am using is to get the WSDL, edit it to
> replace “localhost:8080” with my host name, save it in a public folder, and
> advertise that file as being the location for my web app’s WSDL. The
> downside of this solution is that the advertised WSDL can often fall out of
> sync with the latest edition of the web app deployed.
>
>
>
> I was unable to find an answer to this question anywhere on the Internet.
>
>
>
> Note that I am using Axis 1.6
>
>
>
> Thanks.
>
>
>
>


JiBX and attachments

2009-03-31 Thread Stephan A. Maciej

Hi,

is it possible to use JiBX and, at the same time MTOM, i.e. use  
attachments for transfering large blobs from and to an Axis2 web  
service?


To me it looks like JiBX isn't able to handle the externalization of  
blobs into attachments natively. So I've tried writing a custom JiBX  
marshaller/unmarshaller helper class for handling Java objects that  
represent blobs.


From what I've seen in the stub code generated by wsdl2java, a  
MessageContext is created before the marshalling takes place.  
MessageContext does have an addAttachment method, so I tried to simply  
call that method from my marshalling helper. However, that doesn't  
work because I have no access to the current message context  
(MessageContext.getCurrentMessageContext() returns null).


So, what would be if the stub code generated by wsdl2java would expose  
the MessageContext to marshalling code? I haven't tried hand-editing  
the stub code yet, because I'm unsure if this scenario would actually  
lead to a working (and sane) mechanism to generate attachments for  
generated SOAP messages. Would it?


Thanks,

Stephan


This message was sent using IMP, the Internet Messaging Program.



Re: Help with wsdl2java

2009-03-31 Thread Andreas Veithen
Frank,

MTOM is a _transparent_ way of optimizing messages. Why does the WSDL
explicitly reference xop:Include?

Andreas

On Mon, Mar 30, 2009 at 18:18, Frank Vyncke  wrote:
> I,
>
> Am starting to develop a 'client' for a gSOAP based server, using MTOM
> attachments.
>
> I have a wsdl file, but when I try to compile the wsdl file, I get an
> exception with the following message:
>
> Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
> the element {http://www.w3.org/2004/08/xop/include}Include from the parent
> schema http://www.genivia.com/schemas/mtom_stream_test.xsd
>
> Can anyone tell me where this error comes from, because the wsdl file does
> import the http://www.w3.org/2004/08/xop/include schema correctly (I think,
> there is no way I can check if it really imported the schema or not).
>
> Thanks
> Frank
>
>


Re: wsdl2java issue in upgrading from axis 1.2 to 1.4

2009-03-31 Thread Rishi Renjith
Is there any workaround for this problem?
What i was thinking was to use wsdl2java of axis1.2 and use axis 1.4 for
actual SOAP requests. But when i tried it by replacing the jars, it seems
not working :(

On Mon, Mar 30, 2009 at 8:56 PM, Jean-christophe cazeaux <
jccazeau...@gmail.com> wrote:

> Hello,
>
> I got exactly the same issue. This occurs with axis 1.3 and axis 1.4.
> If you add a "foo" attribute in your wsdl like this :
>  
>   
>
>  maxOccurs="49" nillable="true"/>
>   
>  
>
> The java Class ItemList will be correctly generated. So it appears to
> be a regression in axis from 1.3... Maybe someone has an other
> explanation and/or solution?
>
> JC
>
> 2009/3/30 Rishi Renjith :
> > Hello,
> > In my project, we are planning to upgrade from axis 1.2 to axis 1.4.  But
> > when we tested, we noticed that wsdl2java is not generating some java
> > classes which it used to generate in axis 1.2
> > For eg, with the wsdl structure as below,
> >  
> >
> > 
> >  > nillable="true"/>
> >
> >   
> >   
> >
> >  > maxOccurs="49" nillable="true"/>
> >
> >   
> >   
> >
> >  > maxOccurs="1" nillable="true"/>
> >
> >   
> > wsdl2java is not generating a class for ItemList in axis 1.4, but it used
> to
> > generate a class for ItemList in axis1.2.
> > Is wsdl2java in 1.4 backward compatible with 1.2 ?
> >
> >
> > Thanks,
> > Rishi
>