alternative configuration to server-config.wsdd ?

2006-01-25 Thread Nicolas De Loof


Hello,

My webapp includes axis and a web service endpoint.
The deploy.wsdd is generated as part of the build process (as endpoint 
interface is not yet stable), but it requires to manually update the 
server-config.wsdd to include the deploy.wsdd content.
Using AdminClient to deploy is not a solution as the web service has to 
be started with the webapp (axis configuration is static)


Is there any way to replace WEB-INF/server-config.wsdd based 
configuration by a "programmable" configuration ? I'd like to extend 
AxisServlet and automatically deploy my web service at application 
startup from it's generated deploy.wsdd.


Nico.

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: HashMap return Long value

2006-01-25 Thread Tomáš Procházka
Hi.

 No body has this problem?

 Exist another way to send Map via Axis?

 And what About Axis2? It's in usable version?
  

-- Original message --
   From: Tomáš Procházka <[EMAIL PROTECTED]>
Subject: HashMap return Long value
   Date: Wednesday, January 25, 2006, 3:00:57 PM
Attachments: 
  msgid:[EMAIL PROTECTED]

TP> Hi.

TP>  I Have problem with HasMap in Axis.
TP>  Can you help me somebody, please.

TP>  I write this method on the server side:

TP> public HashMap getMap() {
TP> HashMap map = new HashMap();
TP> map.put("NAME","Tomas");
TP> map.put("SEX","male");
TP> return map;
TP> }


TP>  When invoke it on the client side get this error:

TP> java.lang.ClassCastException: java.lang.Long
TP> at
TP> 
cz.atomsoft.bazartip.ws.SynchronizationSoapBindingStub.getMap(SynchronizationSoapBindingStub.java:206)

TP>  WS return Long number. Why?

TP>  When I use SOPA monitor, get this as response:

TP> 
TP> http://schemas.xmlsoap.org/soap/envelope/";
TP> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
TP> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
TP>   
TP>  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="urn:ws.bazartip.atomsoft.cz">
TP>   
TP> 
TP>  soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns2:Map"
TP> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
TP> xmlns:ns2="http://xml.apache.org/xml-soap";>
TP>   
TP> SEX
TP> male
TP>   
TP>   
TP> NAME
TP> Tomas
TP>   
TP> 
TP>   
TP> 

TP>  I tested it with Apache Axis 1.3 a and 1.4 CVS on the client and also on 
the server side.



--- End of original message --

-- 
 Tomas Prochazka



Re: Deploying a web service

2006-01-25 Thread Jim Azeltine
I am somewhat of a noob myself, but I am starting to "get it". You need to look for "embedded+axis" when you are searching. I found a couple of references for you:  http://cephas.net/blog/2005/09/13/update_to_embedded_axis_application_in_tomcat.html     Here is the install guide on it:  http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp  I think this line is pertinent for you:  Run the Axis AdminClient against your own webapp, instead of Axis, by changing the URL you invoke it with.     I am just curious, why do you need to add axis to your app instead of the opposite?     JimJay Burgess
 <[EMAIL PROTECTED]> wrote:  I must be missing something obvious, but even after checking the list archives,etc., I still can't seem to get this to work. Here's my situation:I have an existing webapp being deployed to Tomcat 5.0.19 as a .WAR. I'm tryingto add a test web service to it (the Math sample delivered with Axis 1.3). Atthis point, I've done the following:(1) Added the Axis servlet to my app's web.xml:AxisServletApache-Axis Servletorg.apache.axis.transport.http.AxisServlet(2) Mapped web service requests to the servlet:AxisServlet/wsapi/*(3) Updated my build.xml to use
 and togenerate what I think are all the correct files into my .WAR: Add.class,Add.java, Add.wsdl, AddService.java, AddServiceLocator.java,AddSoapBindingImpl.java, AddSoapBindingStub.java, deploy.wsdd, undeploy.wsdd.(4) Included all the required .JARs in Tomcat/common/lib and my webapp'sWEB-INF/lib directory.The AxisServlet seems to be running, but when I try to hit"http://localhost/mywebapp/wsapi/Add", I get back:AXIS errorNo service is available at this URLI feel like my webapp hasn't really "deployed" the web service, but I'm not surewhat I need to to to make that happen automatically as part of my webapp's Antbuild/deploy process. Do I still need to include the AdminServlet somehow? Obviously, my goal is toput as little of Axis in my webapp as possible, and I thought I got that bysimply including the .JARs, but not happyaxis.jsp, etc.Thanks in
 advance.Jay| Jay Burgess [Vertical Technology Group]| http://www.vtgroup.com/  

new to axis. axis2 transport error

2006-01-25 Thread Mukherjee, Shuvro



hi,
i am new to 
webservices and axis2.
have started off 
with the guides and samples from the axis2 distribution.
my requirement is to 
write webservice clients (connecting to .net webservices) and not 
webservices themselves.
 
i am trying to put 
together a very simple client to connect to the google spell checker service. i 
dont need an user interface like the one in the samples.
i have written 
something like the following..
-
private void 
testEchoBlocking(String word){    try 
{    
org.apache.axis2.addressing.EndpointReference targetEPR = new 
org.apache.axis2.addressing.EndpointReference(new java.net.URL(protocol, 
googleEndPoint, 
googleServiceName).toString());    
org.apache.axis2.om.OMElement payload = 
getElement(word);    
org.apache.axis2.client.Options options = new 
org.apache.axis2.client.Options();    
options.setTo(targetEPR);    
options.setTransportInProtocol(org.apache.axis2.Constants.TRANSPORT_HTTP);
 
    
//Blocking 
invocation    
org.apache.axis2.client.ServiceClient sender = new 
org.apache.axis2.client.ServiceClient();    
sender.setOptions(options);    
org.apache.axis2.om.OMElement result = 
sender.sendReceive(payload);
 
    
java.io.StringWriter writer = new 
java.io.StringWriter();    
result.serialize(javax.xml.stream.XMLOutputFactory.newInstance().createXMLStreamWriter(writer));    
writer.flush();
 
    
System.out.println(writer.toString());
 
    }
 
    catch (Exception e) 
{    
e.printStackTrace();    
}
-
 
when i run it from 
inside idea like -> 
 
C:/j2sdk1.4.2_02\bin\java 
-Daxis2.home=C:\Implementations\axis\axis2-std-0.94-bin 
-Dfile.encoding=windows-1252 -classpath 
"C:\j2sdk1.4.2_02\jre\lib\charsets.jar;C:\j2sdk1.4.2_02\jre\lib\jce.jar;C:\j2sdk1.4.2_02\jre\lib\jsse.jar;C:\j2sdk1.4.2_02\jre\lib\plugin.jar;C:\j2sdk1.4.2_02\jre\lib\rt.jar;C:\j2sdk1.4.2_02\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_02\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_02\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_02\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_02\jre\lib\ext\sunjce_provider.jar;C:\Sybase\EAServer\java\classes;C:\Implementations\axis\axis2-std-0.94-bin\lib\wstx-asl-2.8.1.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\maven-itest-plugin-1.0.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\axis2-adb-0.94.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\annogen-0.1.0.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\axis2-codegen-0.94.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\commons-codec-1.3.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\XmlSchema-SNAPSHOT.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\geronimo-spec-javamail-1.3.1-rc5.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\xbean-2.1.0.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\axis2-core-0.94.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\xercesImpl-2.7.1.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\stax-api-1.0.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\geronimo-spec-activation-1.0.2-rc4.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\axis-wsdl4j-1.2.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\commons-httpclient-3.0.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\backport-util-concurrent-2.0_01_pd.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\commons-logging-1.0.4.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\servletapi-2.3.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\ws-policy-SNAPSHOT.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\geronimo-spec-jms-1.1-rc4.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\xml-apis-1.3.02.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\axis2-doom-0.94.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\log4j-1.2.12.jar;C:\Implementations\axis\axis2-std-0.94-bin\lib\jaxen-1.1-beta-7.jar;C:\Program 
Files\IntelliJ-IDEA-4.0.3\lib\idea_rt.jar" -Didea.launcher.port=7539 
"-Didea.launcher.library=C:\Program Files\IntelliJ-IDEA-4.0.3\bin\breakgen.dll" 
com.intellij.rt.execution.application.AppMain 
sapphire.custom.axis.TestClient
 
i get an error like 
->
 
- Deploying module : 
addressingorg.apache.axis2.AxisFault: Axis2 transport error : Length 
Required; nested exception is:  org.apache.axis2.AxisFault: Axis2 
transport error : Length Required; nested exception is: 
 org.apache.axis2.AxisFault: Axis2 transport error : Length Required; 
nested exception is:  org.apache.axis2.AxisFault: Axis2 transport error 
: Length Required at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:245) at 
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:449) at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:317) at 
org.apache.axis2.description.OutI

Deploying a web service

2006-01-25 Thread Jay Burgess
I must be missing something obvious, but even after checking the list archives,
etc., I still can't seem to get this to work.  Here's my situation:

I have an existing webapp being deployed to Tomcat 5.0.19 as a .WAR.  I'm trying
to add a test web service to it (the Math sample delivered with Axis 1.3).  At
this point, I've done the following:

(1) Added the Axis servlet to my app's web.xml:

AxisServlet
Apache-Axis Servlet
org.apache.axis.transport.http.AxisServlet


(2) Mapped web service requests to the servlet:

AxisServlet
/wsapi/*


(3) Updated my build.xml to use  and  to
generate what I think are all the correct files into my .WAR: Add.class,
Add.java, Add.wsdl, AddService.java, AddServiceLocator.java,
AddSoapBindingImpl.java, AddSoapBindingStub.java, deploy.wsdd, undeploy.wsdd.

(4) Included all the required .JARs in Tomcat/common/lib and my webapp's
WEB-INF/lib directory.

The AxisServlet seems to be running, but when I try to hit
"http://localhost/mywebapp/wsapi/Add";, I get back:

AXIS error
No service is available at this URL

I feel like my webapp hasn't really "deployed" the web service, but I'm not sure
what I need to to to make that happen automatically as part of my webapp's Ant
build/deploy process.  

Do I still need to include the AdminServlet somehow?  Obviously, my goal is to
put as little of Axis in my webapp as possible, and I thought I got that by
simply including the .JARs, but not happyaxis.jsp, etc.

Thanks in advance.

Jay

| Jay Burgess [Vertical Technology Group]
| http://www.vtgroup.com/






Re: WS-Security: SwA

2006-01-25 Thread Cristian Opincaru
Hi,

So I get it it's not supported for the moment, and there are currently
no plans to implement it :-) Anyway the document is just a draft for
the moment.

Greets,
Cristian

On 1/23/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> Critian,
>
> It's quite easy to do this with WSS4J as Axis supports SwA, it's just
> that not enough people have asked for it. If someone were willing to
> take the lead, the community can helpSame for Kerberos Token
> profile :)
>
> thanks,
> -- dims
>
> On 1/23/06, Cristian Opincaru <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Are there any implementations of the SwA Profile (SOAP with
> > Attachments) of WS-Security that can be used with AXIS? I looked on
> > the WSS4J website, but there it's written that only the UserName
> > Profile and the X509 Profile are supported.
> >
> >
> >
> > --
> > Cristian OPINCARU
> > University of the Federal Armed Forces Munich
> > http://www.unibw.de/cristian.opincaru
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>


--
Cristian OPINCARU
University of the Federal Armed Forces Munich
http://www.unibw.de/cristian.opincaru


Re: [Axis2-0.94] WSDL2Java generates bad code for oneway operations

2006-01-25 Thread Ajith Ranabahu
Hi Ruben,
Yes this is a problem in the last release. Please log a Jira. I'll anyway have a look at it soon :)On 1/25/06, Rubén Naranjo Izquierdo <
[EMAIL PROTECTED]> wrote:   Hello all,   I've been working with 
Axis2-0.94's WSDL2Java and I found out that the codeit generates for oneway operations doesn't work.   If we have a wsdl with an operation like this (Where "tns:SimpleMessage"may be just a "xsd:string"):

   WSDL2Java generates a Message Receiver that extends"AbstractInOutSyncMessageReceiver" instead of "AbstractInMessageReceiver":public class SimplePortTypeMessageReceiver extends
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver { ... }   Also, in the Stub, operations are registered as "OutInAxisOperation",instead of "InOnlyAxisOperation":_operations = new 
org.apache.axis2.description.OutInAxisOperation[1];   Any attept to use the stub to comunicate with the service will result inthe following exception:org.apache.axis2.AxisFault: org.apache.axis2.AxisFault
: Raw Xml providersupports only the methods bearing the signature public OMElement(OMElement) where the method name can be anything   If we add an output message to the operation, then everything works
perfectly (but the operation isn't oneway any more):
   I also tried to manually change Message Receiver generated, so it extended
"AbstractInMessageReceiver". But I culdn't come to a valid solution.   Am I doing something wrong? Or is this a bug of Axis2-0.94? May I log a bugin Jira?   Thank you in advance, Rubén
-- Ajith Ranabahu


Re: share the context from web services

2006-01-25 Thread trebor iksrazal
Lo quieres: 

1) ver a memoria de example.class? 

2) O, simplemente tener una referencia de example.class por dentro su web service ? 

Creo que su pregunta es mas Java que Web Services. Para ver a memoria - un poco como C - puedes usar: 

sun.misc.unsafe :

http://jguru.com/faq/view.jsp?EID=448031

HTH,
iksrazal (shade tree spanish speaker) 
http://www.braziloutsource.com/ 
 On 1/25/06, Roberto Gil <[EMAIL PROTECTED]> wrote:
Yo tengo una aplicación en java. Dentro de esta aplicación está
integrado un servidor, que es Jetty, el cual utilizo como contenedor de
servlet. El servlet que utilizo es AXIS, donde están incluidos los
ficheros con mis servicios web en ficheros .class en el directorio axis\WEB-INF\classes\.En la aplicación java, tengo creado un árbol en memoria, es posible acceder desde un servicio web (axis\WEB-INF\classes\example.class) de alguna manera, a los datos contenidos en el árbol de memoria?
Muchas graciasRobertoOn 1/25/06, trebor iksrazal <
[EMAIL PROTECTED]> wrote:
Could you try and explain your problem again? I'm not understanding
your question - application context of what, the Spring framework ?
Which tree, treeMap etc - Its just like loading a class anywhere else. 

Tal vez es mejor hablar en espanol - no comprende su pregunta. Pero, yo hablo português bien mejor que espanol. 

iksrazal

 On 1/25/06, Roberto Gil <[EMAIL PROTECTED]
> wrote:

Hi, I'm a student spanish that use axis in his project.Excuse me for me english, but i don't speak it very well.I'
ve got a Java application. I use jetty how servlet container, and axis
how my servlet for my web services. My web services are file .class in
the folder .\axis\WEB-INF\classes. With my examples, it works very
well. My question is:   can i access to the java application's context
from my web services ( file .class). For example, if the java
application has a tree in memory, can my web service access to this
tree?thanks you for your help.
Roberto








Invoking De-Serialisation

2006-01-25 Thread Andy Foster
Hi all,

The following code takes the generated axis objects for the SRW
explainResponse, returned from the RPC call invoked through axis and
serialises them out to XML

// obtain the serialiser to return this to XML
QName explainQName = new
QName("http://www.loc.gov/zing/srw/";, "explainResponse");
Serializer responseSer =
ExplainResponseType.getSerializer(null, ExplainResponseType.class,
explainQName);

StringWriter responseWriter = new StringWriter();
SerializationContext context = new
SerializationContext(responseWriter);
context.setPretty(false);
responseSer.serialize(explainQName, null, response,
context);

String SRWResult = responseWriter.getBuffer().toString();

This code all works perfectly fine, my problem is that I now need to do the
reverse operation and wish to use the axis generated classes.

Points to note:

1.  In the example above axis binding stubs were invoked first, the
server called and the serialisation performed on the returned objects from
axis
2.  In this scenario this will not have happened I just want to use the
deserialisation code generated by axis to recreate the objects from XML and
not invoke any RPC calls/ binding stub code, hence I'm concerned that some
of the QNames may not have been registered correctly for the process to work

So with these in mind I know I must at least do the following

QName explainQName = new
QName("http://www.loc.gov/zing/srw/","; explainResponse ");
Deserializer ser = ExplainResponseType.getDeserializer(null,
ExplainResponseType.class, explainQName);

However, what do I need to now to turn my XML back into a fully populated
ExplainResponseType object?

Regards

Andy Foster

<>

Re: share the context from web services

2006-01-25 Thread Roberto Gil
Yo tengo una aplicación en java. Dentro de esta aplicación está integrado un servidor, que es Jetty, el cual utilizo como contenedor de servlet. El servlet que utilizo es AXIS, donde están incluidos los ficheros con mis servicios web en ficheros .class en el directorio 
axis\WEB-INF\classes\.En la aplicación java, tengo creado un árbol en memoria, es posible acceder desde un servicio web (axis\WEB-INF\classes\example.class) de alguna manera, a los datos contenidos en el árbol de memoria?
Muchas graciasRobertoOn 1/25/06, trebor iksrazal <[EMAIL PROTECTED]> wrote:
Could you try and explain your problem again? I'm not understanding
your question - application context of what, the Spring framework ?
Which tree, treeMap etc - Its just like loading a class anywhere else. 

Tal vez es mejor hablar en espanol - no comprende su pregunta. Pero, yo hablo português bien mejor que espanol. 

iksrazal

 On 1/25/06, Roberto Gil <[EMAIL PROTECTED]
> wrote:

Hi, I'm a student spanish that use axis in his project.Excuse me for me english, but i don't speak it very well.I'
ve got a Java application. I use jetty how servlet container, and axis
how my servlet for my web services. My web services are file .class in
the folder .\axis\WEB-INF\classes. With my examples, it works very
well. My question is:   can i access to the java application's context
from my web services ( file .class). For example, if the java
application has a tree in memory, can my web service access to this
tree?thanks you for your help.
Roberto






Re: share the context from web services

2006-01-25 Thread trebor iksrazal
Could you try and explain your problem again? I'm not understanding
your question - application context of what, the Spring framework ?
Which tree, treeMap etc - Its just like loading a class anywhere else. 

Tal vez es mejor hablar en espanol - no comprende su pregunta. Pero, yo hablo português bien mejor que espanol. 

iksrazal
 On 1/25/06, Roberto Gil <[EMAIL PROTECTED]> wrote:

Hi, I'm a student spanish that use axis in his project.Excuse me for me english, but i don't speak it very well.I'
ve got a Java application. I use jetty how servlet container, and axis
how my servlet for my web services. My web services are file .class in
the folder .\axis\WEB-INF\classes. With my examples, it works very
well. My question is:   can i access to the java application's context
from my web services ( file .class). For example, if the java
application has a tree in memory, can my web service access to this
tree?thanks you for your help.
Roberto




Re: Really urgent - Please help

2006-01-25 Thread Jason Cwik
Are there any spaces in $AXISCLASSPATH?  You might need to enclose it
in quotes...

On 1/25/06, Patrick Cogan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to deploy a web service, in the past I have used the ant task
> with no problem, this isn't an option on out live server, so I am trying to
> do so on the command line. I have looked at the document for this and I get
> this error:
>
> Failed to load Main-Class manifest attribute from
> /u01/app/oc4j/oc4jcms/applications/cms/cms/WEB-INF/lib/axis.jar
>
> The command is:
>
> $JAVA_PATH/java -cp $AXISCLASSPATH
> org.apache.axis.client.AdminClient -lurl
> https://localhost:7443/cms/services/AdminService
> deploy.wsdd
>
> Does anyone know the problem? I've looked in the manifest for the axis.jar
> and there isn't an entry for the main-class, but this is the one from the
> release 1.2.1 (I've also tried 1.2.0)
>
> Thanks,
> Patrick.
>
>


Really urgent - Please help

2006-01-25 Thread Patrick Cogan
Hi,I am trying to deploy a web service, in the past I have used the ant task with no problem, this isn't an option on out live server, so I am trying to do so on the command line. I have looked at the document for this and I get this error:
Failed to load Main-Class manifest attribute from/u01/app/oc4j/oc4jcms/applications/cms/cms/WEB-INF/lib/axis.jarThe command is:$JAVA_PATH/java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient
 -lurl https://localhost:7443/cms/services/AdminService deploy.wsddDoes anyone know the problem? I've looked in the manifest for the axis.jar and there isn't an entry for the main-class, but this is the one from the release 
1.2.1 (I've also tried 1.2.0)Thanks,Patrick.


[Axis2-0.94] WSDL2Java generates bad code for oneway operations

2006-01-25 Thread Rubén Naranjo Izquierdo
   Hello all,

   I've been working with Axis2-0.94's WSDL2Java and I found out that the code 
it generates for oneway operations doesn't work. 

   If we have a wsdl with an operation like this (Where "tns:SimpleMessage" 
may be just a "xsd:string"):







   WSDL2Java generates a Message Receiver that extends 
"AbstractInOutSyncMessageReceiver" instead of "AbstractInMessageReceiver":

public class SimplePortTypeMessageReceiver extends 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver { ... }

   Also, in the Stub, operations are registered as "OutInAxisOperation", 
instead of "InOnlyAxisOperation":

_operations = new org.apache.axis2.description.OutInAxisOperation[1];

   Any attept to use the stub to comunicate with the service will result in 
the following exception: 

org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Raw Xml provider 
supports only the methods bearing the signature public OMElement 
(OMElement) where the method name can be anything

   If we add an output message to the operation, then everything works 
perfectly (but the operation isn't oneway any more):








   I also tried to manually change Message Receiver generated, so it extended 
"AbstractInMessageReceiver". But I culdn't come to a valid solution. 

   Am I doing something wrong? Or is this a bug of Axis2-0.94? May I log a bug 
in Jira? 

   Thank you in advance,

 Rubén


AW: [Axis2] wsdl2java support for notification and solicit-response MEPs

2006-01-25 Thread Andreas Bobek

Hi Chathura,

> I haven't tried WS-Eventing but i have done some basic work on
> WS-Notification(Brokered) and to me using a complicated MEP 
> is yet another complication that won't give you much in 
> return. Basically the broker is a web service which has 
> WS-Resource associate with it, which is the list of subscribers.
> So this is how i have modelled the Notification delivery. 
> Broker will de couple the  Notification Producer and the 
> Notification consumer. So the publishing would be a In-Only 
> Operation for the broker.
> Then Broker will create client connections to the consumer 
> EPRs and Notify them in the push delivery mode.

I think WS-Eventing is similar to WS-Notification (which I don't know).
EventSources (server) accept subscriptions from and send notifications to
EventSinks (client). Notification messages can be both OUT and OUT-IN MEPs,
although WS-Eventing defines OUT as the default mode (push delivery mode).
To tell the truth I have no scenarios for OUT-IN (maybe ACK responses?), but
OUT only MEPs will be needed.

> It is not had to invent a programming model for Out-IN MEPed 
> service and there was some effort sometime back, but it 
> cannot be generalized sufficiently and i guess it didn't have 
> any use case. Further what is achieved by Out-In kind of 
> service can be achieved using a client API.

Right :-) !!! This is what I wanted to say with my last post. WSDL describes
the operations of a service and I think a good WSDL to Java tool should
generate code for all four different kinds of MEPs. OUT and OUT-IN from the
service view is the same like IN and IN-OUT from the client view and
therefore I can use the client API. And I want to use the client API, but I
don't want to code it manually and I don't want to use an "inverted" WSDL
file to generate a Stub that I can use within my service as explained here:

http://marc.theaimsgroup.com/?l=axis-user&m=113397248515948&w=2

My suggestion is to generate a further class, called SkeletonStub or
something like that, which contains methods for the OUT and OUT-IN
operations which in turn use the client API. This class should have the same
content as the stub class which would be generated if I would feed the
generator with a inverted WSDL file.

This approach is independent of WS-Eventing and WS-Notification.

Thank you, Andreas.



> On 1/24/06, Andreas Bobek <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I read this thread in which you discussed about wsdl2java 
> support for 
> > out-only MEPs (or out-in):
> >
> > http://marc.theaimsgroup.com/?l=axis-user&m=113397248515948&w=2
> >
> > As a workaround you suggested to rewrite (to invert) the WSDL.
> > I understand this approach, but my question is, do you intend to 
> > support notification MEPs in wsdl2java in one of the next 
> version or 
> > not at all?
> > I think it is a MUST ;-)
> > Currently, I do some WS-Eventing stuff and I heavily miss 
> this feature.
> > I myself could imagine services which only have notification 
> > operations, and not a single "usual" request-response operation.
> >
> > Regards, Andreas Bobek.
> >
> >
> 
> 
> --
> Chathura Herath
> http://chathurah.blogspot.com/



RE: Can't find module.xml

2006-01-25 Thread Bryan Allen
Look in:  %UserProfile%.  This is where my .axis2 folder was located when I had 
this problem.

If your username is gikxh06, that should resolve to something like C:\Documents 
and Settings\gikxh06 on XP.

Bryan Allen
SAS Institute

-Original Message-
From: Kieran Horan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 10:17 AM
To: axis-user@ws.apache.org
Subject: Can't find module.xml

Hi,

I am new to axis. I have generated a java stub file from the eclipse 
plug in Axis2 Code Generator, but when I compile the code I get the errors 
listed below:

On the Web site I found the following solution, 

Remove .axis2 directory from your home directory, if present. 
Create a directory named .axis2 inside your home directory. 
If you are using MS Windows, please use the command prompt and type md .axis2 
Create a directory named modules in the .axis2 directory you just created. 
Copy addressing.mar from the modules/ directory of the standard distribution 
into the .axis2/modules directory in your home directory. 
==
My question. Where is the home directory ? I downloaded the axis.war 
file to the tomcat directory and restating tomcat expanded it to C:\Program 
Files\Apache Group\Tomcat 4.1\webapps\axis2  and then I unzipped the .94 
version to c:\kie\axis_94. In my environment variables I Have set axis_home to 
c:\kie\axis_94, which has the modules,libs directory but I still can't get the 
code top compile successfully.

I am not sure where I have to create the .axis directory ?


error msg:
==
Module validation failed  module.xml not found  for the module :   addressing; 
nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing
org.apache.axis2.deployment.DeploymentException: module.xml not found  for the 
module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing
at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:542)
at 
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56)
at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:39)
at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53)
at 
com.nortel.ccma.GetSkillsetsSoapStub.(GetSkillsetsSoapStub.java:56)
at com.nortel.ccma.jwsdkmain.main(jwsdkmain.java:12)
Caused by: org.apache.axis2.deployment.DeploymentException: module.xml not 
found  for the module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:193)
at 
org.apache.axis2.engine.AxisConfiguration.loadModulefromResources(AxisConfiguration.java:385)
at 
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:328)
at 
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:502)
at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:537)
... 5 more
Caused by: org.apache.axis2.deployment.DeploymentException: module.xml not 
found  for the module :   addressing
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:158)
... 9 more


Regards,
Kieran Horan
* Phone:+353 (0)91 733122 or ESN 570 3122
* FAX:  +353 (0)91 756050
* Email:mailto:[EMAIL PROTECTED]
Nortel Networks, Mervue Business Park
Galway, Ireland





Re: (Sorry) Client side serialization of abstract types. (Was: Complex problem)

2006-01-25 Thread Anne Thomas Manes
You need to specify the types for these two elements:

  
substitutionGroup="gb:CreateItemDefinition"/>  substitutionGroup="gb:CreateItemDefinition"/>



Anne


On 1/25/06, glenn bech <[EMAIL PROTECTED]> wrote:
(Sorry for the premature send)Following the idea outlined here http://www.xfront.com/ElementHierarchy.htmlI have an object hiearachy and are trying to create a JAX-RPC service using
axis 1.3However I believe Axis generates wrong code for serialization. Have anyoneelse seen this before?The element Create>>ItemAttributes can hold any element extending theAbstractCreateItemDefinition type.
However, on serialization things go wrong, and the client sends the serverXML like this ;http://schemas.xmlsoap.org/soap/envelope/
"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
">  http://www.glennbech.com/abstractiontest/abstract/">  
[EMAIL PROTECTED]  1  xsi:type="ns1:AbstractCreateItemDefinition"
xmlns:ns1="http://www.glennbech.com/abstractiontest/abstract/"/>
I think this is due to the Typedescription generated for the classCreateItemAttributes:static {typeDesc.setXmlType(newjavax.xml.namespace.QName("
http://www.glennbech.com/abstractiontest/abstract/", ">>Create>ItemAttributes"));org.apache.axis.description.ElementDesc elemField = neworg.apache.axis.description.ElementDesc
();elemField.setFieldName("createItemDefinition");elemField.setXmlName(newjavax.xml.namespace.QName("http://www.glennbech.com/abstractiontest/abstract
/", "CreateItemDefinition"));elemField.setXmlType(newjavax.xml.namespace.QName("http://www.glennbech.com/abstractiontest/abstract
/", "AbstractCreateItemDefinition"));elemField.setNillable(false);typeDesc.addFieldDesc(elemField); }Any Ideas ?WSDLhttp://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
 xmlns:gb="http://www.glennbech.com/abstractiontest/abstract/" targetNamespace="
http://www.glennbech.com/abstractiontest/abstract/"> http://www.glennbech.com/abstractiontest/abstract/"
location="abstract.xsd"/> http://www.glennbech.com/abstraction/concrete/"location="concrete.xsd"/>
 
 
transport="
http://schemas.xmlsoap.org/soap/http"/>

 location="http://localhost:/axis/services/Provisioning"/>  '
Abstract.xsd targetNamespace="http://www.glennbech.com/abstractiontest/abstract/" xmlns="
http://www.glennbech.com/abstractiontest/abstract/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
 type="AbstractCreateItemDefinition" abstract="true"/> 
 
  
Concrete.xsd  targetNamespace="
http://www.glennbech.com/abstractiontest/concrete/"  xmlns="http://www.glennbech.com/abstractiontest/concrete/"  xmlns:gb="
http://www.glennbech.com/abstractiontest/abstract/"  xmlns:xs="http://www.w3.org/2001/XMLSchema">  

name="CreateDigitalCameraParametersType">
  substitutionGroup="gb:CreateItemDefinition"/>
  substitutionGroup="gb:CreateItemDefinition"/>
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]Sent: 24. januar 2006 14:21To: axis-user@ws.apache.orgSubject: Re: Complex problem
The use of a substitutionGroup combined with an abstract type allows you todo what you want: change both the name and type of the element. AsubtitutionGroup allows you to change the name of an element, but the type
of a substitutionGroup element must be the same as the original element, orit must be derived from type of the original element. Using abstract typeslets you also change the element type.An alternative solution is to use the  compositor.
If you'd like to read up a little more on substitution groups and abstracttypes, see:http://www.w3schools.com/schema/schema_complex_subst.asp
http://www.w3.org/TR/xmlschema-0/#SubsGroupshttp://www.zvon.org/xxl/XMLSchemaTutorial/Output/ser_substitution_st0.html
http://www.xml.com/pub/a/2000/11/29/schemas/part1.html?page=7 (page down abit)
http://www.xfront.com/ElementHierarchy.htmlRegards,AnneOn 1/24/06, glenn bech <[EMAIL PROTECTED]> wrote:Hi Anne, thank you for looking into my case, I can see from the mailing list
that you're one of the ones pulling the load around here.-)Anyways ; I realize now that the substitutiongroup attribute belongs toelements, and not types. Personally, I'm a bit confused about the use of
*both* in my case, the abstract schema I have to work with require me to usean xs:extension, and put the element in a substitution group. However, it is"company policy" and I cannot get around it.
Question; Is it "common" to both use Substitution groups and abstract typesas in my case ?Question; Since substitution groups belo

share the context from web services

2006-01-25 Thread Roberto Gil

Hi, I'm a student spanish that use axis in his project.Excuse me for me english, but i don't speak it very well.I'
ve got a Java application. I use jetty how servlet container, and axis
how my servlet for my web services. My web services are file .class in
the folder .\axis\WEB-INF\classes. With my examples, it works very
well. My question is:   can i access to the java application's context
from my web services ( file .class). For example, if the java
application has a tree in memory, can my web service access to this
tree?thanks you for your help.
Roberto


Can't find module.xml

2006-01-25 Thread Kieran Horan
Hi,

I am new to axis. I have generated a java stub file from the eclipse 
plug in Axis2 Code Generator, but when I compile the code I get the errors 
listed below:

On the Web site I found the following solution,

Remove .axis2 directory from your home directory, if present. 
Create a directory named .axis2 inside your home directory. 
If you are using MS Windows, please use the command prompt and type md .axis2 
Create a directory named modules in the .axis2 directory you just created. 
Copy addressing.mar from the modules/ directory of the standard distribution 
into the .axis2/modules directory in your home directory. 
==
My question. Where is the home directory ? I downloaded the axis.war 
file to the tomcat directory and restating tomcat expanded it to C:\Program 
Files\Apache Group\Tomcat 4.1\webapps\axis2  and then I unzipped the .94 
version to c:\kie\axis_94. In my environment variables I Have set axis_home to 
c:\kie\axis_94, which has the modules,libs directory but I still can't get the 
code top compile successfully.

I am not sure where I have to create the .axis directory ?


error msg:
==
Module validation failed  module.xml not found  for the module :   addressing; 
nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing
org.apache.axis2.deployment.DeploymentException: module.xml not found  for the 
module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing
at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:542)
at 
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:56)
at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:39)
at 
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:53)
at 
com.nortel.ccma.GetSkillsetsSoapStub.(GetSkillsetsSoapStub.java:56)
at com.nortel.ccma.jwsdkmain.main(jwsdkmain.java:12)
Caused by: org.apache.axis2.deployment.DeploymentException: module.xml not 
found  for the module :   addressing; nested exception is: 
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   addressing
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:193)
at 
org.apache.axis2.engine.AxisConfiguration.loadModulefromResources(AxisConfiguration.java:385)
at 
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:328)
at 
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:502)
at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:537)
... 5 more
Caused by: org.apache.axis2.deployment.DeploymentException: module.xml not 
found  for the module :   addressing
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.creatModuleArchivefromResource(ArchiveReader.java:158)
... 9 more


Regards,
Kieran Horan
* Phone:+353 (0)91 733122 or ESN 570 3122
* FAX:  +353 (0)91 756050
* Email:mailto:[EMAIL PROTECTED]
Nortel Networks, Mervue Business Park
Galway, Ireland





defualt serializer and deserializer???

2006-01-25 Thread Alejandro Ariel de Lio
Is there any way to specify a default serializer and deserializer in case
the typeMapping.get(De)Serializer() asociated could't find any?


Re: [Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-25 Thread Anders Syvertsen
Thanks for the help, it works better now. Just got one problem with a 
service im consuming using Axis 1.2 (java).

I've created this service with axis2-0.94:
public boolean setDatasourcevalues(String authUserName, String 
authPassword, int datasourceId, boolean deleteAll, String datasourceXml) 
throws AxisFault {

   // do something
   return false;
}

The services.xml for it looks like,

   
   This webservice takes a xml that can will be transformed and 
imported it into a datasource as datasourcevalues.

   
   locked="false">no.more.webservice.datasource.DatasourceImportImpl

   
   class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

   

Removed the  element since it just tried to route the 
message through the RawXMLINOutReceiver for some reason, when i removed 
it it routed it to the RPCMessageReceiver (this is quite strange?? And 
also while i'm at it, why is the 
org.apache.axis.rpc.receivers.RPCMessageReceiver in the "codegen" module?? )


But the problem im facing right now is, when im calling the service with 
Axis 1.2 client, i get this response XML (using TCP monitor),

http://schemas.xmlsoap.org/soap/envelope/";?>
http://schemas.xmlsoap.org/soap/envelope/";>


http://soapenc/";>
false



.. and this is the last line in the stacktrace it get:
   {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: 
Invalid element in axis2.apache.org.xsd.SetDatasourcevaluesResponse - return



So i wonder, is that response a valid SOAP response message?

First thanks for your explanation. 
But it does not work. As long as I use methods without parameters everything works fine.

I tried mailing a sample project but it was sorted out (of spam).

If I use a method like:

public CustomBean foo(String something)

axis2 gets problems. the output on tomcat side is:

--

- Deploying module : addressing
- Error in loading service impl class for byte code reading : 
		de.ws.ComplexWS


- Error in schema generating :null

--

and while requesting wsdl file the response is:

  
- http://schemas.xmlsoap.org/soap/envelope/";>
  
- 

- 
 Client 
 no scheam found for the service; nested exception is: java.lang.Exception: no scheam found for the service 
 http://myAxisServer/role/default 
- 
 org.apache.axis2.AxisFault: no scheam found for the service; nested exception is: java.lang.Exception: no scheam found for the service at org.apache.axis2.description.AxisService.printUsingWOM(AxisService.java:373) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:322) at org.apache.axis2.transport.http.ListingAgent.listService(ListingAgent.java:469) at org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:393) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.Exception: no scheam found for the service at org.apache.axis2.description.AxisService2WOM.generateWOM(AxisService2WOM.java:86) at org.apache.axis2.description.AxisService.printUsingWOM(AxisService.java:362) ... 20 more 
 

 
 
 



Is something wrong with my axis installation?

Dominik




As long as I use parameterless operations 



axis-user@ws.apache.org schrieb am 25.01.06 08:25:04:
 


the services.xml will look like below;


   
  This is my service
   
   
  http://www.w3.org/2004/08/wsdl/in-out";

class="org.apache.axis2.rpc.receivers.RPCMess

(Sorry) Client side serialization of abstract types. (Was: Complex problem)

2006-01-25 Thread glenn bech
(Sorry for the premature send)

Following the idea outlined here http://www.xfront.com/ElementHierarchy.html
I have an object hiearachy and are trying to create a JAX-RPC service using
axis 1.3

However I believe Axis generates wrong code for serialization. Have anyone
else seen this before?

The element Create>>ItemAttributes can hold any element extending the 
AbstractCreateItemDefinition type. 

However, on serialization things go wrong, and the client sends the server
XML like this ; 

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
http://www.glennbech.com/abstractiontest/abstract/";>
  [EMAIL PROTECTED]
  1
  
http://www.glennbech.com/abstractiontest/abstract/"/>
  

  


I think this is due to the Typedescription generated for the class
CreateItemAttributes:

static {
typeDesc.setXmlType(new
javax.xml.namespace.QName("http://www.glennbech.com/abstractiontest/abstract
/", ">>Create>ItemAttributes"));
org.apache.axis.description.ElementDesc elemField = new
org.apache.axis.description.ElementDesc();
elemField.setFieldName("createItemDefinition");
elemField.setXmlName(new
javax.xml.namespace.QName("http://www.glennbech.com/abstractiontest/abstract
/", "CreateItemDefinition"));
elemField.setXmlType(new
javax.xml.namespace.QName("http://www.glennbech.com/abstractiontest/abstract
/", "AbstractCreateItemDefinition"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
 }


Any Ideas ? 

WSDL

http://schemas.xmlsoap.org/wsdl/";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
  xmlns:xs="http://www.w3.org/2001/XMLSchema";
  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
  xmlns:gb="http://www.glennbech.com/abstractiontest/abstract/";
  targetNamespace="http://www.glennbech.com/abstractiontest/abstract/";>

  http://www.glennbech.com/abstractiontest/abstract/";
location="abstract.xsd"/>
  http://www.glennbech.com/abstraction/concrete/";
location="concrete.xsd"/>

  
    
  
  
    
  
  
    
  
  
    
  
  
    http://schemas.xmlsoap.org/soap/http"/>
    
  
  
    
  
  
    
  
    
  
  
    
  http://localhost:/axis/services/Provisioning"/>
    
  
’

Abstract.xsd

http://www.glennbech.com/abstractiontest/abstract/";
  xmlns="http://www.glennbech.com/abstractiontest/abstract/";
  xmlns:xs="http://www.w3.org/2001/XMLSchema";>

  
  
  
  
    
  
    
    
    
  
    
  
    
  
    
  
    
  


Concrete.xsd

http://www.glennbech.com/abstractiontest/concrete/";
  xmlns="http://www.glennbech.com/abstractiontest/concrete/";
  xmlns:gb="http://www.glennbech.com/abstractiontest/abstract/";
  xmlns:xs="http://www.w3.org/2001/XMLSchema";>

  

  

  
  

  

  

  

  

  

  

  

  
  







 

From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: 24. januar 2006 14:21
To: axis-user@ws.apache.org
Subject: Re: Complex problem

The use of a substitutionGroup combined with an abstract type allows you to
do what you want: change both the name and type of the element. A
subtitutionGroup allows you to change the name of an element, but the type
of a substitutionGroup element must be the same as the original element, or
it must be derived from type of the original element. Using abstract types
lets you also change the element type.

An alternative solution is to use the  compositor.

If you'd like to read up a little more on substitution groups and abstract
types, see:
http://www.w3schools.com/schema/schema_complex_subst.asp
http://www.w3.org/TR/xmlschema-0/#SubsGroups
http://www.zvon.org/xxl/XMLSchemaTutorial/Output/ser_substitution_st0.html
http://www.xml.com/pub/a/2000/11/29/schemas/part1.html?page=7 (page down a
bit)
http://www.xfront.com/ElementHierarchy.html

Regards,
Anne
On 1/24/06, glenn bech <[EMAIL PROTECTED]> wrote:
Hi Anne, thank you for looking into my case, I can see from the mailing list
that you're one of the ones pulling the load around here.-)

Anyways ; I realize now that the substitutiongroup attribute belongs to
elements, and not types. Personally, I'm a bit confused about the use of
*both* in my case, the abstract schema I have to work with require me to use
an xs:extension, and put the element in a substitution group. However, it is


"company policy" and I cannot get around it.

Question; Is it "common" to both use Substitution groups and abstract types
as in my case ?

Question; Since substitution groups belong to elements only, I cannot see 
how it affects Axis at all, as to my knowledge the WSDL2Java
generator only spits our 

Re: [Axis2] Rolling my own services.xml - how to define the in and out message so it appears in the WSDL.

2006-01-25 Thread SOA Work

First thanks for your explanation. 
But it does not work. As long as I use methods without parameters everything 
works fine.
I tried mailing a sample project but it was sorted out (of spam).

If I use a method like:

public CustomBean foo(String something)

axis2 gets problems. the output on tomcat side is:

--

- Deploying module : addressing
- Error in loading service impl class for byte code reading : 
de.ws.ComplexWS

- Error in schema generating :null

--

and while requesting wsdl file the response is:

   
- http://schemas.xmlsoap.org/soap/envelope/";>
   
- 
- 
  Client 
  no scheam found for the service; nested exception is: 
java.lang.Exception: no scheam found for the service 
  http://myAxisServer/role/default 
- 
  org.apache.axis2.AxisFault: no scheam found for the 
service; nested exception is: java.lang.Exception: no scheam found for the 
service at 
org.apache.axis2.description.AxisService.printUsingWOM(AxisService.java:373) at 
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:322) at 
org.apache.axis2.transport.http.ListingAgent.listService(ListingAgent.java:469) 
at org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:393) 
at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.Exception: no 
scheam found for the service at 
org.apache.axis2.description.AxisService2WOM.generateWOM(AxisService2WOM.java:86)
 at 
org.apache.axis2.description.AxisService.printUsingWOM(AxisService.java:362) 
... 20 more 
  
  
  
  



Is something wrong with my axis installation?

Dominik




As long as I use parameterless operations 


axis-user@ws.apache.org schrieb am 25.01.06 08:25:04:
> 
> the services.xml will look like below;
> 
>  
> 
>This is my service
> 
> 
>http://www.w3.org/2004/08/wsdl/in-out";
>  
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> 
> Example
> 
> 
> >btw. must CustomBean implemente Serializable?
> no need , if that is JavaBean that is more enough :)
> 
> Thanks,
>  Deepal
> 
> ~Future is Open~
> 
> - Original Message - 
> From: "SOA Work" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, January 25, 2006 1:01 PM
> Subject: Re: [Axis2] Rolling my own services.xml - how to define the in and 
> out message so it appears in the WSDL.
> 
> 
> 
> I agree. I didn't find good samples too. All samples in the userguide use 
> the OMElements things.
> Could someone give me a services.xml what a class like this must look like 
> in services.xml
> 
> public class Example {
> public CustomBean getCustomBean(String name) {
> ...
> }
> 
> public CustomBean getCustomBean(String name, String whatever) {
> ...
> }
> 
> public CustomBean[] getAllBeans(String whatever) {
> ...
> }
> }
> 
> 
> btw. must CustomBean implemente Serializable? And more than one service 
> defined in services.xml must be grouped with ?
> 
> axis-user@ws.apache.org schrieb am 25.01.06 07:54:34:
> >
> >
> > Slowly the mysery services.xml becomes clearer. I succeeded using the
> > RPCMessageReceiver ;-).
> >
> > I tested the operation:
> >
> > public MyBean getBean() {..}
> >
> > with the coresponding entry in the services.xml:
> >
> > 
> >   Complex example
> >   
> >

Setting socket timeout on SOAP message call

2006-01-25 Thread Greg Cawthorn

How do I set the timeout on a SOAP message call in Axis 1.1?

I can find examples to set a socket timeout for WSDL2Java stubs or on an 
RPC Call object, but I cannot find an equivalent for a SOAPConnection. I 
can apparently set a timeout value in a MessageContext, but I can only 
retrieve a context from my SOAP Message after I have called call() on 
the SOAPConnection which is obviously no good to me.


Cheers,

Greg Cawthorn ||


Re: [axis2] classloader poblem?

2006-01-25 Thread Deepal Jayasinghe

h ,
I have reply to this mail several time , any way the right way is this
1. if your are trying to access the resources out side the service impl 
class , then u have to get the axisService.getClassLoader() and using that 
load ur resources
2. if you are trying to access the property inside ServiceImpl class , then 
the way is

 getClass().getClassLoader().getResourceAsStream("myResource.resourec");

Thanks,
Deepal

~Future is Open~

- Original Message - 
From: "Juergen Umbrich" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, January 25, 2006 4:28 PM
Subject: [axis2] classloader poblem?




Hi

i have a poblem to load a file diectly in my .aar archive.
structure of the aar-achive
aar
|
|-lib/
   |-mypackage.jar
  |-properties.file
   |-loadpoperties.java

in loadproperties i run the following command

InputStream in =
Thread.currentThread().getContextClassLoader().getResourceAsStream(properties.file);


and i get in = null as result.
as anyone an idea what happens here, and how i can solve the problem?

thx






[axis2] classloader poblem?

2006-01-25 Thread Juergen Umbrich

Hi

i have a poblem to load a file diectly in my .aar archive.
structure of the aar-achive
aar
 |
 |-lib/
|-mypackage.jar
   |-properties.file
   |-loadpoperties.java

in loadproperties i run the following command

InputStream in =
Thread.currentThread().getContextClassLoader().getResourceAsStream(properties.file);


and i get in = null as result.
as anyone an idea what happens here, and how i can solve the problem?

thx


Re: avoid xmlns="" in a Axis client call

2006-01-25 Thread Ivano Luberti


Thanks Anne it worked out .
Actually the effect has been this:


http://www.w3.org/2001/XMLSchema-instance">


http://localhost:8088/DocProviderWS/">
oi



no xmlns attribute at all , but the .NET serve understan it in the right
way.
Thanks again


At 00.40 25/01/2006, Anne Thomas Manes wrote:
Modify the WSDL and add

elementFormDefault="qualified" 
to the  definition. 
This is caused by a bug in .NET. Per the XML Schema spec, the default
value is "unqualified", but .NET always assumes
"qualified".
Anne
On 1/24/06, Ivano Luberti
<[EMAIL PROTECTED]>
wrote:


Hi to all.

Before sending thi post I hve searched the mailing listo for hours
but I couldn't  find an answer, maybe beacuse I'm not an XML
expert.

I'm trying to consume a web service on a .NET server using an Axis
Client.

I have downloaded the WSDL and built the client using wsdl2jave.

When I try to call a method I don't get the expected answer.

I have been able to diagnose that the web service is not getting the
parameter specificied in my call.

I have used a proxy server to read the XML sent by the Axis
client.

Here it is:




http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">




http://localhost:8088/DocProviderWS/">

s







I have found a solution reading on the Internet: have to specify the
xmlns attribute in all the childs, like this.




http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">




http://localhost:8088/DocProviderWS/">


http://localhost:8088/DocProviderWS">s







Is there soemone who knows how to force the Client to fill all the
xmlns attributes ?

TIA


== 

Archimede Informatica NEWS! 

==

Realizzato il Sistema Integrato per la biglietteria della Torre di
Pisa: 

prenotazione, vendita, pre-vendita ed emissione dei biglietti di
ingresso 

alla Torre sia online che presso le biglietterie dislocate sulla
piazza:


http://www.opapisa.it/boxoffice

Partner del Progetto Ci-Tel "Front office
Telematico per il cittadino" 

Ente Coordinatore Comune di Pisa



http://www.comune.pisa.it/doc/e-government.htm


==

dott. Ivano Mario Luberti

Archimede Informatica societa' cooperativa a r. l.

Sede Operativa

Via Gereschi 36 - 56126- Pisa

tel.: +39-050- 580959

tel/fax: +39-050-9711344 

e-mail:
[EMAIL PROTECTED] 

web:

http://www.archicoop.it




No virus found in this outgoing message.

Checked by AVG Anti-Virus.

Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date:
19/01/2006




No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date:
19/01/2006

== 
Archimede Informatica NEWS! 
==
Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:

prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso

alla Torre sia online che presso le biglietterie dislocate sulla
piazza:


http://www.opapisa.it/boxoffice
Partner del Progetto Ci-Tel "Front
office Telematico per il cittadino" 
Ente Coordinatore Comune di Pisa


http://www.comune.pisa.it/doc/e-government.htm

==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344 
e-mail: [EMAIL PROTECTED] 
web:

http://www.archicoop.it





No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006