wsdl2xxx chokes on simple example from w3.org

2005-11-25 Thread Franz Fehringer
Hello,

Both wsdl2ws (Axis C/C++ 1.5) and wsdl2java (Axis Java 1.3) fail on the
first example (StockQuote; file attached) of
http://www.w3.org/TR/wsdl
The environmemnt for completeness is Win2K with Java 1.5.0_05.
The problem is that the wsdl2xxx cannot cope with element tags without type
attributes.
The C/C++ wsdl2ws Tool first gives warnings (note the gt sign in front)
java -cp C:\Programme\axis-c-1-5-win32\lib\axis\wsdl2ws.jar;...
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -sclient tro.wsdl
ignoring anonymous type TradePrice
ignoring anonymous type TradePriceRequest
and then indeed doesn't generate any source code for TradePrice and
TradePriceRequest.
As i wrote in
http://marc.theaimsgroup.com/?l=axis-c-devm=113273914320619w=2 (with full
example)
with more complex WSDL corrupt C++ source code is generated in this case
declaring and referencing items like (note again the gt sign)
class t_Warning_Description;
With wsdl2java i get Java source code like (TradePrice.java)
typeDesc.setXmlType(new
javax.xml.namespace.QName(http://example.com/stockquote.xsd;,
TradePrice));
again with the infamous gt sign.
To fix this, i can either change
   element name=TradePrice
  complexType
  all
  element name=price type=float/
  /all
  /complexType
to
   complexType name=t_TradePrice
  all
  element name=price type=float/
  /all
  /complexType
element name=TradePrice type=xsd1:t_TradePrice/
or to
   complexType name=TradePrice
  all
  element name=price type=float/
  /all
  /complexType
and in that case change
   part name=body element=xsd1:TradePrice/
to
   part name=body type=xsd1:TradePrice/

Is this a known problem?
Note, that in the W3 example i had to make two small corrections to get it
working:
- Change StockQuoteSoapBinding to StockQuoteBinding
- Replace http://www.w3.org/2000/10/XMLSchema with
http://www.w3.org/2001/XMLSchema

Best regards

Franz

Dr. Franz Fehringer (Dipl. Math.)

ISO Software Systeme
Eichendorffstrasse 29
90491 Nürnberg
Deutschland

Tel. : +49/(911) - 99594-0
Fax  : +49/(911) - 99594-580

mailto:[EMAIL PROTECTED]
http://www.isogmbh.de
?xml version=1.0?
definitions name=StockQuote

targetNamespace=http://example.com/stockquote.wsdl;
  xmlns:tns=http://example.com/stockquote.wsdl;
  xmlns:xsd1=http://example.com/stockquote.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns=http://schemas.xmlsoap.org/wsdl/;

types
   schema targetNamespace=http://example.com/stockquote.xsd;
  xmlns=http://www.w3.org/2001/XMLSchema;
   complexType name=t_TradePriceRequest
  all
  element name=tickerSymbol type=string/
  /all
   /complexType
	   element name=TradePriceRequest type=xsd1:t_TradePriceRequest/
   complexType name=t_TradePrice
  all
  element name=price type=float/
  /all
  /complexType
	  element name=TradePrice type=xsd1:t_TradePrice/
   /schema
/types

message name=GetLastTradePriceInput
part name=body element=xsd1:TradePriceRequest/
/message

message name=GetLastTradePriceOutput
part name=body element=xsd1:TradePrice/
/message

portType name=StockQuotePortType
operation name=GetLastTradePrice
   input message=tns:GetLastTradePriceInput/
   output message=tns:GetLastTradePriceOutput/
/operation
/portType

binding name=StockQuoteBinding type=tns:StockQuotePortType
soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/
operation name=GetLastTradePrice
   soap:operation soapAction=http://example.com/GetLastTradePrice/
   input
   soap:body use=literal/
   /input
   output
   soap:body use=literal/
   /output
/operation
/binding

service name=StockQuoteService
documentationMy first service/documentation
port name=StockQuotePort binding=tns:StockQuoteBinding
   soap:address location=http://example.com/stockquote/
/port
/service

/definitions


?xml version=1.0?
definitions name=StockQuote

targetNamespace=http://example.com/stockquote.wsdl;
  xmlns:tns=http://example.com/stockquote.wsdl;
  xmlns:xsd1=http://example.com/stockquote.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns=http://schemas.xmlsoap.org/wsdl/;

types
   schema targetNamespace=http://example.com/stockquote.xsd;
  xmlns=http://www.w3.org/2001/XMLSchema;
   element name=TradePriceRequest
  complexType
  all
  element 

Re: Remote call failure due to stream errors ?

2005-11-25 Thread John Hawkins

hi,

Have you tried doing a call to getFuture()
without calling echo() first?

What sort of response is coming back
- is it chunked or not? You can use tcpmon to capture the response.

cheesr,
John.







Jimenez, Juan X
[EMAIL PROTECTED] 
24/11/2005 13:25



Please respond to
Apache AXIS C User List





To
Apache AXIS C User
List axis-c-user@ws.apache.org


cc



Subject
Remote call failure due to
stream errors ?








I have a very simple service (implemented in Java)
with two methods:
 
String echo(String message)
and
Future getFuture()
 
I have tested both through a browser and they are both known to work.
 
I have used the binary version of Axis C++ 1.5 to generate stubs and
wrote a very simple client that invokes echo() twice followed by
getFuture()
 
echo works without any problems but getFuture systematically fails with
the following error message returned by the what() method of
SoapFaultException
 
HTTPTransportException:Output streaming error on Channel while writing
data Channel error 0 while writing data: 'The operation completed
successfully.
'

The only warning I see when I start my client is
 
Warning - The configuration file was not found (/axiscpp.conf).
Using default values
 
Could anyone please give me a good hint as to what may be going wrong
here (given that I am a Java programmer and struggle with C++) ?
 
Here is my client code:
 
 
#include stdafx.h
#include SimpleServicePort.hpp
#include Future.hpp
#include axis/GDefine.hpp

int main(int argc, _TCHAR* argv[])
{

char uri[] = http://localhost:7001/webservice/SimpleService;

SimpleServicePort *ssp = new SimpleServicePort(uri,APTHTTP1_1);


char *response = ssp-echo(Hello World!);

printf(\n%s %s\n\n, response, ssp-echo(And hello
again.));


Future *aFuture;

try {

aFuture
= ssp-getFuture();

}

catch(SoapFaultException sfe) {

printf(Remote
call failed: %s\n, sfe.what());

}


return 0;
}

Thank you in advance

Juan




Notice to recipient:
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you
are not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in
this internet e-mail are subject to the terms and conditions expressed
in any applicable governing terms of business or client engagement letter
issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch and Banc of America Securities Limited are authorised
and regulated by the Financial Services Authority.




RE: Hopefully a simple problem...

2005-11-25 Thread John Hawkins

Hi Again,

If you've got src code compiilation
issues I would suggest posting to the developers forum [EMAIL PROTECTED]

If you can raise a jira for any issues
you find it would help us keep track of them.

many thanks,
John.







Jimenez, Juan X
[EMAIL PROTECTED] 
24/11/2005 13:13



Please respond to
Apache AXIS C User List





To
Apache AXIS C User
List axis-c-user@ws.apache.org


cc



Subject
RE: Hopefully a simple problem...








Thank you for the suggestion.
I have downloaded a recent version (November 18) but it still fails
to compile under VC7.

I tried the ANT build but it also
got into a tangle. Rather than boring everyone with the details,
can I ask first whether this is the right forum?

Also I noticed that the following
line needs changing (one reason for me trying to recompile):

src\platforms\windows\PlatformSpecificWindows.hpp(44):
#define PLATFORM_CONFIG_PATH /axiscpp.conf
On windows platforms /axixcpp.conf
does not resolve to anything. It should either be ./axiscpp.conf
or simply axiscpp.conf

Thank you

Juan


From: John Hawkins [mailto:[EMAIL PROTECTED]

Sent: 03 November 2005 10:13
To: Apache AXIS C User List
Subject: Re: Hopefully a simple problem...


Hi, 

I was wrong (although ANT is still our preferred build system) 
apparently, you are breaking because there are function signature changes
between vc6 and vc 7 that we did not know about until post 1.5. You need
to upgrade to a more recent build. 

cheers, 
John. 






John Hawkins/UK/[EMAIL PROTECTED]

03/11/2005 09:03





Please respond to
Apache AXIS C User List






To
Apache AXIS
C User List axis-c-user@ws.apache.org



cc



Subject
Re: Hopefully a simple problem...











Please could you try the ant instructions here - http://ws.apache.org/axis/cpp/antbuild-guide.html


I suspect the project files are out of date.






Notice to recipient:
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you
are not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited and may be unlawful.

When addressed to external clients any opinions or advice contained in
this internet e-mail are subject to the terms and conditions expressed
in any applicable governing terms of business or client engagement letter
issued by the pertinent Bank of America group entity.

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch and Banc of America Securities Limited are authorised
and regulated by the Financial Services Authority.





Re: WSDL2Java and client SSL

2005-11-25 Thread Markus Reil

Hi Tim,

I finally ended up reimplementing the Sender class as you suggested. It 
works pretty well. With different client wsdd files I am even able to 
configure the SSL behaviour per SOAP-Connection which is exactly what I 
wanted.


You are right that it is not a very pretty solution to copy most of the 
original class, but I did not find anything better. Anyway, thanks again 
for your help.


Markus

Tim R J Langford wrote:

Hi Markus,

Did you manage to find a solution to your problem? I had to do something 
similar once with a test system to get it to accept non certified sites 
across ssl. I could not work out how to do do it correctly in Axis; so I 
ended up creating a custom HTTPSender and setting it up as my pivot in 
the handler chain of Axis. I extended the base HttpSender class from 
Axis, but a lot of variables and methods I wanted to overide were 
private, so unfortunately I ended up having to cut and paste most of the 
extending class into the new class and am not sure of the implications 
of this evne though everything seemed to work fine.


If you use this method then you can pretty much alter the HTTP mechanism 
as you see fit: for example allowing you to support gzip compression (I 
think originally axis did not support this from what I remember?). You 
can also use this class to overide the SocketFactory and get it to 
produce a non-certified sockets if you so desire. Infact this method 
maybe overidable... I cant remember. If not maybe it should be.


Anyway, I am sure there is a more maintainable way of doing this, but I 
was in a rush and it was a while ago. If you are in the same situation 
maybe a simialr approach will get you by for now?



Hope this helps until you find something more suitable,

Tim



Markus Reil wrote:


Hi,

I am currently trying to connect to a SOAP Web Service with Axis. I 
need to use a client certificate to authenticate myself.
I do not want to set the keystore/truststore files globally via system 
properties because I have other http traffic in the same virtual 
machine that uses different or no keys.


I know there are a lot threads out about Axis/SSL out there. But I 
already spent a couple of hours looking for a solution and did not 
find anything of great use. Can anyone help me with this?


E.g. is it possible to create a SocketFactory and pass it to the Axis 
Service or Remote instance?


Thanks.

Regards,
Markus



--
Markus Reil
Applikationsentwickler

MindMatics AG
Marcel-Breuer-Str. 18
D-80807 München

E-Mail: [EMAIL PROTECTED]
Tel.:   +49 89 322986-0
Fax:+49 89 322986-570
Web:www.mindmatics.de


Die Information in dieser E-Mail ist vertraulich und exklusiv für den
Adressatenkreis bestimmt. Unbefugte Empfänger haben kein Recht, vom
Inhalt Kenntnis zu nehmen, fehlgeleitete E-Mails sind sofort zu löschen.
Bitte informieren Sie hierüber unverzüglich die MindMatics AG.
Weiterleiten oder Kopieren, darf auch auszugsweise nur mit
ausdrücklicher, schriftlicher Einwilligung der MindMatics AG erfolgen.
In jedem Fall ist sicherzustellen, dass keinerlei inhaltliche
Veränderungen erfolgen. Die MindMatics AG ist von der Richtigkeit des
Inhalts und der Übertragung dieser E-Mail überzeugt. Eine Haftung dafür
ist jedoch ausgeschlossen.

This is a confidential communication intended only for the named
addresses. If you receive this communication in error, please notify us
and return and delete it without reading it. This e-mail may not be
disclosed, copied or distributed in any form without the obtained
permission in writing of MindMatics AG. In any case it may not be
altered or otherwise changed. Whilst MindMatics AG believes that the
information is correct at the date of the e-mail, no warranty and
representation is given to this effect and MindMatics AG can accept no
responsibility.



Re: BeanDeserializer based on constructor arguments

2005-11-25 Thread Nicolas De Loof


Here is what I've done :

I'm using a map to store attributes values during child processing, and 
build deserialized object on element end. Is there a cleaner method ?


public class SiteBaseKeyDeserializer extends DeserializerImpl
{
   private Map values = new HashMap();

   public SOAPHandler onStartChild(String namespace, final String 
localName, String prefix, Attributes attributes, DeserializationContext 
context) throws SAXException {
   return new SimpleDeserializer(String.class, new 
QName(soapenc:string)) {

   public Object makeValue(String source) throws Exception {
   Object object = super.makeValue(source);
   values.put(localName, object);
   return object;
   };
   };
   }

   public void onEndElement(String namespace, String localName, 
DeserializationContext context) throws SAXException {

   String idSite = (String) values.get(idSite);
   value = new SiteBase.Key(idSite);
   }
}

Nico.

Nicolas De Loof a écrit :



Hello,

I'm trying to setup a BeanDeserializer for a non-javabean compliant 
object : it's properties are read-only and have to be set using 
constructor


public class Key{
   public Key(String id, String code) {this.id= id; this.code= code;}

   pulic getId() {.}
   public getCode() {.}
}

This object is a business Key and is immutable, but has to be used in 
a web service.


Extending DeserializerImpl, I can override onStartChild ands use a 
basic Deserializer for every String attribute, but how to retrieves 
values in onEndElement ?


Can someone tell me how to setup a BeanDeserializer for this ?

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.




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.



[axis2] TypeSystemHolder does not exist help needed

2005-11-25 Thread iksrazal
Hi all, 

I 'm getting strange errors when trying to compile my WSDL2Java code with ant: 

./WSDL2Java.sh -uri wsdl/service.wsdl -ss -sd -o wise/ -p 
com.siemens.swa.plugins.webservices.types

[javac] 
/home/iksrazal/white3/wise/com/siemens/swa/plugins/webservices/types/databinding/org/xmlsoap/schemas/TimeDocument.java:19:
 
package 
schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder
 
does not exist
[javac] public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)schemaorg_apache_xmlbeans.system.sECC7940C4012EB2293D5238A794D458D.TypeSystemHolder.typeSystem.resolveHandle(timea4a3doctype);

I think what I need to do is put the 
'schemaorg_apache_xml' dir generated by WSDL2Java in the classpath. After 
several attempts, however, I'm not having any luck. 

My classpath is: 

  path id=axis.classpath
  pathelement location=build/classes /
  fileset dir=${axis.home}/lib
include name=**/*.jar /
  /fileset
  fileset dir=lib
include name=*.jar/
  /fileset
  pathelement location=wise/schemaorg_apache_xml /
   /path

   taskdef resource=axis-tasks.properties
  classpathref=axis.classpath /

My target is: 

target name=compile_wsdl2 depends=clean,prepare
echo message=Compiling wsdl2 files/

javac
 srcdir=wise
 destdir=${build}
 deprecation=true
 failonerror=true debug=true


 include name=**/*.java/
  classpath refid=axis.classpath/
/javac

copy todir=${build} 
  fileset dir=wise 
include name=**/*.properties/
include name=**/*.x*/
  /fileset
/copy
  /target

Please help, 
iksrazal


Service constructor throwing NullPointerException

2005-11-25 Thread Ivano giuseppe Talamo


Hello,
I have the following class as part of a package named gridmanager:

public class Test {
  public void test() throws Exception{
Service s=new Service();
  }
}

In my webservice I import the package gridmanager and have the following code:

Test t=new Test();
t.test();

when I call the web service I get a NullPointerException,
with the following stack trace:
org.apache.axis.client.Service.getEngineConfiguration(Service.java:812)
org.apache.axis.client.Service.getAxisClient(Service.java:103)
org.apache.axis.client.Service.(Service.java:112)
gridmanager.Test.test(Test.java:8)
...

line number 8 in Test.java corresponds to the line:
Service s=new Service();
But if I try to create the Service object directy inside
the web service the exception does not occur.
I'm using axis 1.3 with tomcat 5.5.12 and java 1.4.2_03-b02.
Have you any idea of what is wrong?

thank you
Ivano Talamo


wsdl2xxx chokes on simple example from w3.org

2005-11-25 Thread Franz Fehringer
Hello,

Both wsdl2ws (Axis C/C++ 1.5) and wsdl2java (Axis Java 1.3) fail on the
first example (StockQuote; file attached) of
http://www.w3.org/TR/wsdl
The environmemnt for completeness is Win2K with Java 1.5.0_05.
The problem is that the wsdl2xxx cannot cope with element tags without type
attributes.
The C/C++ wsdl2ws Tool first gives warnings (note the gt sign in front)
java -cp C:\Programme\axis-c-1-5-win32\lib\axis\wsdl2ws.jar;...
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -sclient tro.wsdl
ignoring anonymous type TradePrice
ignoring anonymous type TradePriceRequest
and then indeed doesn't generate any source code for TradePrice and
TradePriceRequest.
As i wrote in
http://marc.theaimsgroup.com/?l=axis-c-devm=113273914320619w=2 (with full
example)
with more complex WSDL corrupt C++ source code is generated in this case
declaring and referencing items like (note again the gt sign)
class t_Warning_Description;
With wsdl2java i get Java source code like (TradePrice.java)
typeDesc.setXmlType(new
javax.xml.namespace.QName(http://example.com/stockquote.xsd;,
TradePrice));
again with the infamous gt sign.
To fix this, i can either change
   element name=TradePrice
  complexType
  all
  element name=price type=float/
  /all
  /complexType
to
   complexType name=t_TradePrice
  all
  element name=price type=float/
  /all
  /complexType
element name=TradePrice type=xsd1:t_TradePrice/
or to
   complexType name=TradePrice
  all
  element name=price type=float/
  /all
  /complexType
and in that case change
   part name=body element=xsd1:TradePrice/
to
   part name=body type=xsd1:TradePrice/

Is this a known problem?
Note, that in the W3 example i had to make two small corrections to get it
working:
- Change StockQuoteSoapBinding to StockQuoteBinding
- Replace http://www.w3.org/2000/10/XMLSchema with
http://www.w3.org/2001/XMLSchema

Best regards

Franz

Dr. Franz Fehringer (Dipl. Math.)

ISO Software Systeme
Eichendorffstrasse 29
90491 Nürnberg
Deutschland

Tel. : +49/(911) - 99594-0
Fax  : +49/(911) - 99594-580

mailto:[EMAIL PROTECTED]
http://www.isogmbh.de
?xml version=1.0?
definitions name=StockQuote

targetNamespace=http://example.com/stockquote.wsdl;
  xmlns:tns=http://example.com/stockquote.wsdl;
  xmlns:xsd1=http://example.com/stockquote.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns=http://schemas.xmlsoap.org/wsdl/;

types
   schema targetNamespace=http://example.com/stockquote.xsd;
  xmlns=http://www.w3.org/2001/XMLSchema;
   complexType name=t_TradePriceRequest
  all
  element name=tickerSymbol type=string/
  /all
   /complexType
	   element name=TradePriceRequest type=xsd1:t_TradePriceRequest/
   complexType name=t_TradePrice
  all
  element name=price type=float/
  /all
  /complexType
	  element name=TradePrice type=xsd1:t_TradePrice/
   /schema
/types

message name=GetLastTradePriceInput
part name=body element=xsd1:TradePriceRequest/
/message

message name=GetLastTradePriceOutput
part name=body element=xsd1:TradePrice/
/message

portType name=StockQuotePortType
operation name=GetLastTradePrice
   input message=tns:GetLastTradePriceInput/
   output message=tns:GetLastTradePriceOutput/
/operation
/portType

binding name=StockQuoteBinding type=tns:StockQuotePortType
soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/
operation name=GetLastTradePrice
   soap:operation soapAction=http://example.com/GetLastTradePrice/
   input
   soap:body use=literal/
   /input
   output
   soap:body use=literal/
   /output
/operation
/binding

service name=StockQuoteService
documentationMy first service/documentation
port name=StockQuotePort binding=tns:StockQuoteBinding
   soap:address location=http://example.com/stockquote/
/port
/service

/definitions


?xml version=1.0?
definitions name=StockQuote

targetNamespace=http://example.com/stockquote.wsdl;
  xmlns:tns=http://example.com/stockquote.wsdl;
  xmlns:xsd1=http://example.com/stockquote.xsd;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  xmlns=http://schemas.xmlsoap.org/wsdl/;

types
   schema targetNamespace=http://example.com/stockquote.xsd;
  xmlns=http://www.w3.org/2001/XMLSchema;
   element name=TradePriceRequest
  complexType
  all
  element 

Can i install and run my web service in IBM HttP server 1.3.2.8 on Aix

2005-11-25 Thread giribabu venugopal
hi

 simply my service create two files in remote or same machine, when client call our web service

am installing axis1.2 in AIx IBM http server?

how to install what is prerequiste?




WG: wsdl2ws strange warnings and results (REPOST)

2005-11-25 Thread Franz Fehringer
Addendum to my recent mail (wsdl2xxx chokes on simple example from w3.org).
Attachments trigger / show erroneous Axis behaviour.

Greetings

Franz

-Ursprüngliche Nachricht-
Von: Franz Fehringer [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 8. November 2005 15:47
An: Apache AXIS C Developers List
Betreff: wsdl2ws strange warnings and results


Hello,

I get strange warnings and class definitions in using wsdl2ws.
My Axis (C/C++) version is 1.5.
I execute java -cp %AXISCCLASSPATH%;%CLASSPATH%
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -ocpp -lc++ -mgnu -sclient
PegsTour.wsdl
(files are attached).
The warnings are
ignoring anonymous type ErrorResponse

ignoring anonymous type _LoginRequest_Expiry

ignoring anonymous type _LoginResponse_Expiry

ignoring anonymous type LoginResponse

ignoring anonymous type LoginRequest

ignoring anonymous type t_Warning_Description

ignoring anonymous type _LoginResponse_SessionToken

Note the spurious greaterthan sign in front.
This gt sign also spoils the generated sources, for example

class t_Warning_Description;

What is wrong?

Thanks in advance

Franz

Dr. Franz Fehringer (Dipl. Math.)

ISO Software Systeme
Eichendorffstrasse 29
90491 Nuremberg
Germany

Tel. : +49/(911) - 99594-0
Fax  : +49/(911) - 99594-580

mailto:[EMAIL PROTECTED]
http://www.isogmbh.de


PegsTour.wsdl
Description: application/xml


durchstich.xsd
Description: application/xml
/*
 * Copyright 2003-2004 The Apache Software Foundation.

 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
 * This file contains functions to manipulate complex type t_Warning
 */

#if !defined(__T_WARNING_PARAM_H__INCLUDED_)
#define __T_WARNING_PARAM_H__INCLUDED_

#include axis/AxisUserAPI.hpp
AXIS_CPP_NAMESPACE_USE 

#include t_Warning_Description.hpp
/*Local name and the URI for the type*/
static const char* Axis_URI_t_Warning = 
http://www.pegs-pegstour.com/API/XMLSchema/1.0.1;;
static const char* Axis_TypeName_t_Warning = t_Warning;

class t_Warning_Description;
class STORAGE_CLASS_INFO t_Warning
{
public:
xsd__long ID;
xsd__string Code;
t_Warning_Description* Description;
xsd__string Source;
t_Warning();
~t_Warning();
};

#endif /* !defined(__T_WARNING_PARAM_H__INCLUDED_)*/


Axis tomcat Session already invalidated

2005-11-25 Thread Nuno Martins

Hi all,

My client can send requests to web-service. After some time of 
inactivity, this exception is thrown.


2005-11-25 16:00:48 StandardManager[/axis] Session event listener threw 
exception

java.lang.IllegalStateException: getAttribute: Session already invalidated
  at 
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) 

  at 
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) 

  at 
org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) 

  at 
org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) 

  at 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) 

  at 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) 

  at 
org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) 

  at 
org.apache.catalina.session.StandardManager.run(StandardManager.java:823)

  at java.lang.Thread.run(Thread.java:534)
--

Can anyone explains to me what this error means and how can I solve it?

Thanks






Re: Axis tomcat Session already invalidated

2005-11-25 Thread nastytweety

Sessions can be invalidated automatically after a max time of inactivity.
Check sessions api to set that max time manually.

NaStY

On Fri, 25 Nov 2005, Nuno Martins wrote:


Hi all,

My client can send requests to web-service. After some time of inactivity, 
this exception is thrown.


2005-11-25 16:00:48 StandardManager[/axis] Session event listener threw 
exception

java.lang.IllegalStateException: getAttribute: Session already invalidated
 at 
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925)
 at 
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124)
 at 
org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43)
 at 
org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72)
 at 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:623)
 at 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:572)
 at 
org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746)
 at 
org.apache.catalina.session.StandardManager.run(StandardManager.java:823)

 at java.lang.Thread.run(Thread.java:534)
--

Can anyone explains to me what this error means and how can I solve it?

Thanks







Re: Axis tomcat Session already invalidated

2005-11-25 Thread Nuno Martins

Hi,

The problem is that my web-service only receives a request and return a 
String; My client, sends a request and write server response. How can 
server says that session is invalidated if there isn't any access to 
web-service in that moment?


Thanks



nastytweety wrote:


Sessions can be invalidated automatically after a max time of inactivity.
Check sessions api to set that max time manually.

NaStY

On Fri, 25 Nov 2005, Nuno Martins wrote:


Hi all,

My client can send requests to web-service. After some time of 
inactivity, this exception is thrown.


2005-11-25 16:00:48 StandardManager[/axis] Session event listener 
threw exception
java.lang.IllegalStateException: getAttribute: Session already 
invalidated
 at 
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) 

 at 
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) 

 at 
org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) 

 at 
org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) 

 at 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) 

 at 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) 

 at 
org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) 

 at 
org.apache.catalina.session.StandardManager.run(StandardManager.java:823) 


 at java.lang.Thread.run(Thread.java:534)
--

Can anyone explains to me what this error means and how can I solve it?

Thanks











--





Re: Axis tomcat Session already invalidated

2005-11-25 Thread HOFFMANN Camille

Hi,

Did you set your scope to session like that parameter name=scope 
value=session/ ???
If so, when your client call your web-service it is creating a new 
session you keep alive this session until you close your client and 
after a while doing nothing your session is invalidated.
Maybe you can define this parameter as an application, it means your 
web-service will be instanciate only once (singleton) or you can delete 
this line and live this parameter by default and create a new instance 
for each call.

I hope I have been helpful.

Best regards,

Camille




Hi,

The problem is that my web-service only receives a request and return a
String; My client, sends a request and write server response. How can
server says that session is invalidated if there isn't any access to
web-service in that moment?

Thanks



nastytweety wrote:

 Sessions can be invalidated automatically after a max time of inactivity.
 Check sessions api to set that max time manually.

 NaStY

 On Fri, 25 Nov 2005, Nuno Martins wrote:

 Hi all,

 My client can send requests to web-service. After some time of
 inactivity, this exception is thrown.

 2005-11-25 16:00:48 StandardManager[/axis] Session event listener
 threw exception
 java.lang.IllegalStateException: getAttribute: Session already
 invalidated
  at
 
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:925) 



  at
 
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:124) 



  at
 
org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTPSessionListener.java:43) 



  at
 
org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHTTPSessionListener.java:72) 



  at
 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:623) 



  at
 
org.apache.catalina.session.StandardSession.expire(StandardSession.java:572) 



  at
 
org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:746) 



  at
 
org.apache.catalina.session.StandardManager.run(StandardManager.java:823)


  at java.lang.Thread.run(Thread.java:534)
 --

 Can anyone explains to me what this error means and how can I solve it?

 Thanks









--






Axis faults

2005-11-25 Thread Bengali Bengali
Hi,

I have questions about SOAPFault generated by Axis that might be related:

1) When I throw my application exception (which is declared in the WSDL and SEI, and has
been generated by WSDL2Java) , Axis appends some elements like {http://xml.apache.org/axis/}exceptionName 
with the server stack trace included it. Is it possible to disable this behaviour and configure Axis to not
append this ?

2) Axis put in the faultcode element a message like Server.* when I throw my custom exception.
Is is possible to control what's in the faultcode in my case it should be only Server ?

3) My input parameters are strongly typed and associated beans have been generated by WSDL2Java
task. When a deserialization error occurs an AxisFault is sent and I would like to throw my
custom fault. I guess the strategy for this is to write a handler which intercepts the soapfault 
detach the AxisFault of the SOAPEnvelope and throw mine but is there a better way to do this ?

Thanks
Luc





Thanks
Luc


Re: Different behaviour for AXIOMXPath and DOMXPath?

2005-11-25 Thread Davanum Srinivas
Andreas,

Better to log a bug in Axis2 JIRA. the Axis2 developers are not really
actively monitoring this list yet!.

thanks,
dims

On 11/25/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Hi,

 i'am trying to write a service, which is independed from the version of
 Axis (1.2 and 2). The access to the request data works with XPath through
 Jaxen.

 But although the code is the same (with the exception of AXIOMXPath and
 DOMXPath), applying the XPath expressions

 1)/a0:GetPersons/a0:PersonIds/a0:PersonId
 2)/a0:GetPersons/a0:RoleList

 works for Axis1, but not for Axis2.

 Could someone tell me, if there is a different behaviour between AXIOMXPath
 and DOMXPath?

 Thank you.
 Andreas




 Axis 1 gets the request:

 ns1:GetPersons xmlns:ns1=http://partner-service.dcb.com;
 ns1:Header
 ns1:Sourceich/ns1:Source
 /ns1:Header
 ns1:PersonIds
 ns1:PersonId123/ns1:PersonId
 /ns1:PersonIds
 ns1:RoleListVIP/ns1:RoleList
 /ns1:GetPersons

 Axis 2 gets the request:

 q0:GetPersons xmlns:q0=http://partner-service.dcb.com;
 q0:Header
 q0:Sourceich/q0:Source
 /q0:Header
 q0:PersonIds
 q0:PersonId123/q0:PersonId
 /q0:PersonIds
 q0:RoleListVIP/q0:RoleList
 /q0:GetPersons

 The code sample is:

 XPath xPath = for Axis1: new DOMXPath(expression);for
 Axis2: new AXIOMXPath(expression);
 xPath.addNamespace(a0, getNamespace());
 List results = xPath.selectNodes(node);




--
Davanum Srinivas : http://wso2.com/blogs/


problem in developing .NET proxy for Axis web services

2005-11-25 Thread MUHAMMAD IQBAL

Hi Guys,I am having a problem regaring interoperablility, when i try to build a.NET proxy for my Axis web service it raises an error on Dom Element, ihave a doc/lit style web service that accepts Dom Element as a parameterand returns Dom Element, but .NET generates an error when buildingproxy, the error message is:
d:\SpecSheetGenerator\WindowsApplication2\Web References\WebReference\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import binding 'ProductDocumentServiceSoapBinding' from namespace 'http://192.168.30.134:8080/myService/services/MyService'. Unable to import operation 'myMethod'. The datatype 'http://xml.apache.org/xml-soap:Element' is missing.
can any one help me to fix this issue?Thanks in advance.Regards,Muhammad Iqbal







From:"Hansen, Geir" [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:RE: problem in developing .NET proxy for Axis web servicesDate:Tue, 22 Nov 2005 18:16:34 +0100I think that "generates an error" is not spesific enough to be able tohelp you.Can you describe the problem in a bit more detail?-Original Message-From: MUHAMMAD IQBAL [mailto:[EMAIL PROTECTED]Sent: 22. november 2005 17:28To: axis-user@ws.apache.orgSubject: problem in developing .NET proxy for Axis web servicesHi Guys,I am having a problem regaring interoperablility, when i try to build a.NET proxy for my Axis web service 
it raises an error on Dom Element, ihave a doc/lit style web service that accepts Dom Element as a parameterand returns Dom Element, but .NET generates an error when buildingproxy.can any one help me to fix this issue?Thanks in advance.Regards,Muhammad Iqbal



Re: problem in developing .NET proxy for Axis web services

2005-11-25 Thread thilina madu
hi dearI also trying to interoperability but I don't any idea about that.(Java client to .net(C#) service and vice versa).If you acheive this any way please let me know how you acheive this.Becouse i am a newer to this field.thank you  madushan thilina.  It is better if you send that detai below mail: [EMAIL PROTECTED]MUHAMMAD IQBAL [EMAIL PROTECTED] wrote:Hi Guys,I am having a problem regaring interoperablility, when i try to build a.NET proxy for my Axis web service it raises an error on Dom Element, ihave a doc/lit style web service that accepts Dom Element as a parameterand returns Dom Element, but .NET generates an error when buildingproxy, the error message is: 
 d:\SpecSheetGenerator\WindowsApplication2\Web References\WebReference\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import binding 'ProductDocumentServiceSoapBinding' from namespace 'http://192.168.30.134:8080/myService/services/MyService'. Unable to import operation 'myMethod'. The datatype 'http://xml.apache.org/xml-soap:Element' is missing.  can any one help me to fix this issue?Thanks in advance.Regards,Muhammad IqbalFrom:"Hansen, Geir"
 [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:RE: problem in developing .NET proxy for Axis web servicesDate:Tue, 22 Nov 2005 18:16:34 +0100I think that "generates an error" is not spesific enough to be able tohelp you.Can you describe the problem in a bit more detail?-Original Message-From: MUHAMMAD IQBAL [mailto:[EMAIL PROTECTED]Sent: 22. november 2005 17:28To: axis-user@ws.apache.orgSubject: problem in developing .NET proxy for Axis web servicesHi Guys,I am having a problem regaring interoperablility, when i try to build a.NET proxy for my Axis web service it raises an error on Dom Element, ihave a doc/lit style web service that accepts Dom Element as a parameterand returns
  Dom
 Element, but .NET generates an error when buildingproxy.can any one help me to fix this issue?Thanks in advance.Regards,Muhammad Iqbal  
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.