Re: Unexpected subelement

2008-06-18 Thread jeusdi

I send StackTrace exception-->

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement proc_id
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.fromOM(LicenceManagerMessageReceiverInOut.java:149)
at
com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.invokeBusinessLogic(LicenceManagerMessageReceiverInOut.java:43)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824)
at 
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException:
Unexpected subelement proc_id
at
com.grupmicros.www.licencemanager.CreateLicence$Factory.parse(CreateLicence.java:748)
at
com.grupmicros.www.licencemanager.LicenceManagerMessageReceiverInOut.fromOM(LicenceManagerMessageReceiverInOut.java:136)
... 24 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement
proc_id
at
com.grupmicros.www.licencemanager.CreateLicence$Factory.parse(CreateLicence.java:677)

-- 
View this message in context: 
http://www.nabble.com/Unexpected-subelement-tp17979173p17998344.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: difference between element and type ?

2008-06-18 Thread pierre betz
ok I keep the same mail for the next message, because it's almost the same
subject..


so..in fact, I work on a web service, and axis2 (1.3) make some mistake when
I deploy it in tomcat (5.5.9) :
the generated wsdl that you access by
localhost:8080/servicename?wsdl   have some problems.

my structure is like that :
the wsdl use the types of schema1 and schema2
schema1 use the types of schema 2.

so my wsdl import schema1, which import schema2


so I tried to import both schemas in my wsdl ... doesn't not work when
deploy, because, like with soapUI, it try to retrieve schema2 2 times.
.. so I just import the schema1, which import schema2 . it work, fine, but
just one time.
I explain : in /localhost/axis2/services/listServices :
I have the list of the services. When I try to see one, (I mean the
servicename?wsdl) it work for the import schema :  (servcename
=UserExtended)



from here, ok it work.
but after, if i try to see another service (UserBase) , it's written :



instead of UserBase?xsd=xsd0.xsd... and so this will not work after..
and with 10 services, you will see something lie import
service1??xsd=service2??xsd=service3?...


what can I do to fix that ??


thank a lot if you have any ideas :)


difference between element and type ?

2008-06-18 Thread pierre betz
hi everyone, I work on web services for some time now, but I still have this
question in my head.. and don't find any answer..
what is the true difference between type and element in a schema/wsdl ?

in the wsdl file, for a message : (from the \axis2-1.3\samples\databinding
sample !)

everytime I must declare a part, even if it's empty. is that right ?
(wsdl2jave with xmlbeans will not work if there is no part)





and the element :








so here, the getStockQuote is defined as an element. ok, why not.


but now, here is the complete schema, and you will see :
   


so, you declare an element when it is the part of the message ? and a type
when it's a part of element ?

and  the:

it is the response, so, ok, maybe it have to be declared as element.
but :   
what does that mean ? that the response element will be the same form as
 ?



http://www.w3.org/2001/XMLSchema";
targetNamespace="
http://w3.ibm.com/schemas/services/2002/11/15/stockquote";
xmlns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote";>
















































thanks a lot for the explanations !


Re: [AXIS2-1.4] Java heap space properties

2008-06-18 Thread Upul Godage
Because Axis2 engine is running inside Tomcat, you have to do it in Tomcat
like this. Before running the catalina.sh etc. shell scripts set the
CATALINA_OPTS environment variable with the necessary settings. Then this
will be used inside the catalina.sh file.

export CATALINA_OPTS="-Xms512m -Xmx512m"

Hope this helps.

Upul


On Thu, Jun 19, 2008 at 3:30 AM, Marc Lefebvre <[EMAIL PROTECTED]>
wrote:

> How do you configure Axis2 heap space for the JVM?   I looked in axis2.xml
> and didnt see any settings.   Im running in Tomcat, perhaps its configured
> there?
>
> Im getting error:
>
> http://schemas.xmlsoap.org/soap/envelope/
> ">
>   
>  
> soapenv:Server
> java.lang.OutOfMemoryError: Java heap
> space
> 
>  
>   
> 
>
>
> __
> Marc Lefebvre, Principle Software Engineer
> Akimeka, 1305 N. Holopono Street, Kihei, HI 96753
> Phone: (808)442-7168, Email: [EMAIL PROTECTED]
> echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Need Axis2 Dependency Order. PLEASE HELP!!!

2008-06-18 Thread gsogol

So where do I get the dependency order? My deadline is approaching and I
really need to know as most jars are not being loaded correctly
-- 
View this message in context: 
http://www.nabble.com/Need-Axis2-Dependency-Order.-PLEASE-HELP%21%21%21-tp17936189p17996321.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] How can I use WSDL2 in axis2??

2008-06-18 Thread keith chapman
Hi Takashi,

This was a bug that was detected after the release. Sorry about that. I'll
have it fixed by this evening. So you can try it out with the nightly.

Thanks,
Keith.

On Wed, Jun 18, 2008 at 2:38 PM, Takashi Saruhashi <[EMAIL PROTECTED]>
wrote:

>   Thnaks so much Keith!
>
>
>
> I tried to create stubs from auto-generated wsdl2 file from axis2.
>
>
>
> When I try to use WSDL2JAVA command like this.
>
>
>
> wsdl2java.bat -uri Test.wsdl -p test -wv 2.0 –uw
>
>
>
> Then I got those errors and warnings,
>
>
>
> Using AXIS2_HOME:   C:\axis2-1.4
>
> Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_15
>
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault "
> in the context of "org.apache.woden.wsdl20.xml.BindingEleme
>
> nt" must not be in the WSDL 2.0 namespace.
>
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault "
> in the context of "org.apache.woden.wsdl20.xml.BindingEleme
>
> nt" must not be in the WSDL 2.0 namespace.
>
> Woden[Error],0:0,WSDL520,Extension element "{
> http://www.w3.org/ns/wsdl}outfault "
> in the context of "org.apache.woden.wsdl20.xml.BindingEleme
>
> nt" must not be in the WSDL 2.0 namespace.
>
> [WARN] Type 
> {http://www.w3.org/2001/XMLSchema}Enummissing!
>
> [WARN] Type 
> {http://www.w3.org/2001/XMLSchema}Enummissing!
>
>
>
> I have no idea why it happens….  I simply use auto-generated WSDL2 file by
> axis2…
>
> Also, I got those warnings when I try with WSDL1.1
>
> That never happened with axis2.1.13….
>
>
>
> Could anyone tell me how can I fix those problems???
>
>
>
> $ wsdl2java.bat -uri Test1.xml -p test1 -wv 1.1 -uw
>
> Using AXIS2_HOME:   C:\axis2-1.4
>
> Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_15
>
> Retrieving document at 'PriceService1.xml'.
>
> [WARN] Type 
> {http://www.w3.org/2001/XMLSchema}Enummissing!
>
> [WARN] Type 
> {http://www.w3.org/2001/XMLSchema}Enummissing!
>
>
>
>
>
> Best regards.
>
> Takashi
>
>
>
>
>  --
>
> *From:* keith chapman [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, June 17, 2008 4:17 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: [axis2] How can I use WSDL2 in axis2??
>
>
>
> Hi Takashi,
>
> I'll be glad to help you get going. On a user point of view there is no
> real difference between using WSDL 1.1 and WSDL 2.0 when deploying a
> service. If you drop a wsdl (foo.wsdl which is a WSDL 2.0 representation for
> your service) into the META-INF directory of the service archive then axis2
> will use that to build the AxisService (provided the serviceName in the WSDL
> matches the serviceName in the services.xml).
>
> Axis2 tools support WSDL 2.0 too. so you can use both java2wsdl and
> wsdl2java by providing the -wv 2.0 option (To indicate that its processing a
> WSDL 2).
>
> Thanks,
> Keith.
>
> On Tue, Jun 17, 2008 at 7:22 PM, Takashi Saruhashi
> <[EMAIL PROTECTED]> wrote:
>
>
> Hello all,
>
> I checked public document of axis2 and found that axis2 applies to
> WSDL2.
> I want to use WSDL2 instead of WSDL1.1.
>
> Simply, I tried to replace auto generated WSDL1.1 file by axis2 to
> WSDL2.
> Then I got a lot of Exceptions because of that.
>
> Could anybody suggest me how to deal with WSDL2??
> I tried to google the documents about it but in vain
>
>
> Best regards.
> Takashi
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Axis2: Error while trying to use Wsdl2Java eclipse plugin

2008-06-18 Thread Shawn Talbot

Hello Asha,

I am also running a Java 6 environment.   I didn't do anything else in 
particular except make sure I closed eclipse, deleted the folder 
'Axis2_Codegen_Wizard' in  /.metadata/.plugins/,  
added the backport jar and added the reference to it in plugin.xml

And then I restarted eclipse.  I didn't do anything else.

Some other people also had issues on the mailing list.

Please see if these also help:
https://issues.apache.org/jira/browse/AXIS2-3792
http://issues.apache.org/jira/browse/AXIS2-3799
http://markmail.org/message/nfbhofcejfvj2zxb?q=list:org.apache.ws.axis-user
(Perhaps you also need the Geronimo-stax jar


-Shawn

[EMAIL PROTECTED] wrote:
Hi Shawn, 


I trying to use the Wsdl2java java toold for my project and I'm facing the same 
problem as mentioned here and by adding the backport jar and plug-in code is 
not solving the issue.

Cud you please provide me with some more detailed information about how you 
solved the problem

It is very urgent and any help will be gr8.

Thanks
Asha

Shawn Talbot wrote:
  

Hello,

Could I please have some suggestions on how to get the 1.4 codegen 
plugin to work in eclipse?


I have attached copies of the error output from when I ran eclipse in 
debug mode and some wsdl I am attempting to generate stubs for.


Any help would be much appreciated.

Thanks,
Shawn


Shawn Talbot wrote:


Hello,

My problem is that I have been unable to generate client stubs for any 
WSDL using the eclipse Wsdl2Java tool.


I have just downloaded the latest axis2 1.4 binary distribution and 
eclipse tools.


At the last step, when I click finish I always get a "An error 
occurred while completing process 
-java.lang.reflect.InvocationTargetException" pop-up in eclipse.
I have tried this under both eclipse 3.3 and eclipse 3.4-m6. (with the 
axis2 home directory set, and the eclipse axis2 preferences field 
pointed to the axis2 1.4 directory)
The tool will not even work for me with using the default Version 
service that comes with axis2.
(I have also noticed that the plugins for axis2 1.4 are called 1.3.0 
in the eclipse plugin xml file...)

I am running windows xp, and JDK 6.
Please note that I had used axis2 1.3 on this same machine 
successfully for the past 4 months.


Has anyone else encountered this error? Can someone help me to get 
axis2 1.4 up and running on my dev machine under eclipse?


Any help is appreciated

Thanks,
Shawn

  

Retrieving document at 'c:\\helloservice.xml'.
Retrieving document at 'c:\\helloservice.xml'.
java.lang.reflect.InvocationTargetException
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalCont
ext.java:422)
at
org.eclipse.jface.operation.ModalContext.run(ModalContext.java:347)
at
org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at
org.apache.axis2.tool.codegen.eclipse.CodeGenWizard.doFinishWSDL2Java
(CodeGenWizard.java:353)
at
org.apache.axis2.tool.codegen.eclipse.CodeGenWizard.performFinish(Cod
eGenWizard.java:171)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java
:742)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java
:373)
at
org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
227)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:83)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3773)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3372)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(Wiz
ardHandler.java:260)
at
org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.
java:280)
at
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.ja
va:273)
at
org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)

at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Para
meterizedCommand.java:508)
at
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(Handle
rService.java:169)
at
org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(S
laveHandlerService.java:247)
at
org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAct
ion.java:157)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:582)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
butionItem.java:499)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
ontributionItem.java:410)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:83)
at org.eclip

[AXIS2-1.4] Java heap space properties

2008-06-18 Thread Marc Lefebvre
How do you configure Axis2 heap space for the JVM?   I looked in axis2.xml and 
didnt see any settings.   Im running in Tomcat, perhaps its configured there?
 
Im getting error:
 
http://schemas.xmlsoap.org/soap/envelope/";>
   
  
 soapenv:Server
 java.lang.OutOfMemoryError: Java heap space
 
  
   

 
 
__
Marc Lefebvre, Principle Software Engineer
Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 
Phone: (808)442-7168, Email: [EMAIL PROTECTED]
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

JDK1.3 + Tomcat 5.0.27 + Axis X.Y

2008-06-18 Thread sridharmnj

Hi
I am working on a application which was developed 10 years ago and still
using JDK 1.3 only.
(As many other applications are running on JDK1.3, client doesnot want to
upgrade the JDK - now.)
Now I am working on enhancements, which requires this app to access some
webservices.
To develop webservice client, Please let me know which Axis version is
compatible with JDK1.3 + Tomcat 5.0.27. If not possible with Axis any other
alternative also please.

Many Thanks,
Sridhar

-- 
View this message in context: 
http://www.nabble.com/JDK1.3-%2B-Tomcat-5.0.27-%2B-Axis-X.Y-tp17991159p17991159.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

2008-06-18 Thread Saminda Abeyruwan
In your client's

stub._getServiceClient().getOptions().setProperty(...);

On Wed, Jun 18, 2008 at 11:24 PM, Tim James McConechy <
[EMAIL PROTECTED]> wrote:

>  Thanks, Where exactly do I do this?
>
>
>  --
>
> *From:* Saminda Abeyruwan [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, June 18, 2008 1:49 PM
>
> *To:* axis-user@ws.apache.org
> *Subject:* Re: org.apache.axis2.AxisFault: Transport error: 403 Error:
> Access Forbidden
>
>
>
> Please disable chunking in client side and try,
>
> option.setProperty(HTTPConstants.CHUNKED, "false");
>
> Thank you!
>
> Saminda
>
> On Wed, Jun 18, 2008 at 6:23 PM, Tim James McConechy <
> [EMAIL PROTECTED]> wrote:
>
> Seems to be the case – but why does it only occur in Axis2 and not Axis
> 1.4? I am going to try to setup an IIS 6.0 server and see if I can compile
> in .NET 3.0…I should mention that after this any calls will give a 403 and I
> need to restart IIS. But I can only trigger this with 5 calls from Axis2 –
> normally we have an other client app that throws millions of requests at the
> server without these errors.
>
>
>  --
>
> *From:* keith chapman [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, June 17, 2008 11:32 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: org.apache.axis2.AxisFault: Transport error: 403 Error:
> Access Forbidden
>
>
>
> Hi James,
>
> I wonder weather this is a server side issue cause Status code (403)
> indicates that the server understood the request but refused to fulfill it.
>
> Thanks,
> Keith.
>
> On Wed, Jun 18, 2008 at 1:12 AM, Tim James McConechy <
> [EMAIL PROTECTED]> wrote:
>
>
>
> Hi All,
>
> I am stumped on the following problem. I am using Axis2 to connect to a
> .Net 1.1 series of web services. Almost immediately but randomly – say after
> five web service calls. I get the following error(s)
>
>
>
> org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden
>
> or
>
> Software caused connection abort: recv failed
>
>
>
> I simply cannot make Axis2 reliably function with my web services. I
> generated the services with wsdl2java using adb, do I need to use Axis 1.4
> instead? I have checked the web and saw similar posts but no
> solutions…Anyone have any ideas?
>
>
>
> Stack dumps:
>
>
>
> 11:39:46,101 ERROR http-8484-Processor22 [ObjectBaseService] Transport
> error: 403 Error: Access Forbidden
>
> org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden
>
>   at org.apache.axis2.transport.http.HTTPSender.handleResponse(*
> HTTPSender.java:296*)
>
>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(*
> HTTPSender.java:190*)
>
>   at org.apache.axis2.transport.http.HTTPSender.send(*
> HTTPSender.java:75*)
>
> …
>
>
>
> Or
>
>
>
> 11:39:46,111 ERROR http-8484-Processor22 [ObjectBaseService] Software
> caused connection abort: recv failed
>
> org.apache.axis2.AxisFault: Software caused connection abort: recv failed
>
>   at org.apache.axis2.AxisFault.makeFault(*AxisFault.java:430*)
>
>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(*
> HTTPSender.java:193*)
>
>   at org.apache.axis2.transport.http.HTTPSender.send(*
> HTTPSender.java:75*)
>
> …
>
>
>
> Thanks
>
>
>
>
>
> Tim McConechy | Principal Software Engineer | *Infor *| Office:
> 610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]
>
>
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
>
>
>
> --
> Saminda Abeyruwan
>
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org
>



-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org


RE: org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

2008-06-18 Thread Tim James McConechy
Thanks, Where exactly do I do this?

 



From: Saminda Abeyruwan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2008 1:49 PM
To: axis-user@ws.apache.org
Subject: Re: org.apache.axis2.AxisFault: Transport error: 403 Error:
Access Forbidden

 

Please disable chunking in client side and try,

option.setProperty(HTTPConstants.CHUNKED, "false");

Thank you!

Saminda

On Wed, Jun 18, 2008 at 6:23 PM, Tim James McConechy
<[EMAIL PROTECTED]> wrote:

Seems to be the case - but why does it only occur in Axis2 and not Axis
1.4? I am going to try to setup an IIS 6.0 server and see if I can
compile in .NET 3.0...I should mention that after this any calls will
give a 403 and I need to restart IIS. But I can only trigger this with 5
calls from Axis2 - normally we have an other client app that throws
millions of requests at the server without these errors.

 



From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 11:32 PM
To: axis-user@ws.apache.org
Subject: Re: org.apache.axis2.AxisFault: Transport error: 403 Error:
Access Forbidden

 

Hi James,

I wonder weather this is a server side issue cause Status code (403)
indicates that the server understood the request but refused to fulfill
it.

Thanks,
Keith.

On Wed, Jun 18, 2008 at 1:12 AM, Tim James McConechy
<[EMAIL PROTECTED]> wrote:

 

Hi All,

I am stumped on the following problem. I am using Axis2 to connect to a
.Net 1.1 series of web services. Almost immediately but randomly - say
after five web service calls. I get the following error(s)

 

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

or

Software caused connection abort: recv failed

 

I simply cannot make Axis2 reliably function with my web services. I
generated the services with wsdl2java using adb, do I need to use Axis
1.4 instead? I have checked the web and saw similar posts but no
solutions...Anyone have any ideas?

 

Stack dumps:

 

11:39:46,101 ERROR http-8484-Processor22 [ObjectBaseService] Transport
error: 403 Error: Access Forbidden

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

  at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.jav
a:296)

  at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
90)

  at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

...

 

Or

 

11:39:46,111 ERROR http-8484-Processor22 [ObjectBaseService] Software
caused connection abort: recv failed

org.apache.axis2.AxisFault: Software caused connection abort: recv
failed

  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

  at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
93)

  at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

...

 

Thanks

 

 

Tim McConechy | Principal Software Engineer | Infor | Office:
610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]

 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org 




-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org 



Re: org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

2008-06-18 Thread Saminda Abeyruwan
Please disable chunking in client side and try,

option.setProperty(HTTPConstants.CHUNKED, "false");

Thank you!

Saminda

On Wed, Jun 18, 2008 at 6:23 PM, Tim James McConechy <
[EMAIL PROTECTED]> wrote:

>  Seems to be the case – but why does it only occur in Axis2 and not Axis
> 1.4? I am going to try to setup an IIS 6.0 server and see if I can compile
> in .NET 3.0…I should mention that after this any calls will give a 403 and I
> need to restart IIS. But I can only trigger this with 5 calls from Axis2 –
> normally we have an other client app that throws millions of requests at the
> server without these errors.
>
>
>  --
>
> *From:* keith chapman [mailto:[EMAIL PROTECTED]
> *Sent:* Tuesday, June 17, 2008 11:32 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: org.apache.axis2.AxisFault: Transport error: 403 Error:
> Access Forbidden
>
>
>
> Hi James,
>
> I wonder weather this is a server side issue cause Status code (403)
> indicates that the server understood the request but refused to fulfill it.
>
> Thanks,
> Keith.
>
> On Wed, Jun 18, 2008 at 1:12 AM, Tim James McConechy <
> [EMAIL PROTECTED]> wrote:
>
>
>
> Hi All,
>
> I am stumped on the following problem. I am using Axis2 to connect to a
> .Net 1.1 series of web services. Almost immediately but randomly – say after
> five web service calls. I get the following error(s)
>
>
>
> org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden
>
> or
>
> Software caused connection abort: recv failed
>
>
>
> I simply cannot make Axis2 reliably function with my web services. I
> generated the services with wsdl2java using adb, do I need to use Axis 1.4
> instead? I have checked the web and saw similar posts but no
> solutions…Anyone have any ideas?
>
>
>
> Stack dumps:
>
>
>
> 11:39:46,101 ERROR http-8484-Processor22 [ObjectBaseService] Transport
> error: 403 Error: Access Forbidden
>
> org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden
>
>   at org.apache.axis2.transport.http.HTTPSender.handleResponse(*
> HTTPSender.java:296*)
>
>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(*
> HTTPSender.java:190*)
>
>   at org.apache.axis2.transport.http.HTTPSender.send(*
> HTTPSender.java:75*)
>
> …
>
>
>
> Or
>
>
>
> 11:39:46,111 ERROR http-8484-Processor22 [ObjectBaseService] Software
> caused connection abort: recv failed
>
> org.apache.axis2.AxisFault: Software caused connection abort: recv failed
>
>   at org.apache.axis2.AxisFault.makeFault(*AxisFault.java:430*)
>
>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(*
> HTTPSender.java:193*)
>
>   at org.apache.axis2.transport.http.HTTPSender.send(*
> HTTPSender.java:75*)
>
> …
>
>
>
> Thanks
>
>
>
>
>
> Tim McConechy | Principal Software Engineer | *Infor *| Office:
> 610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]
>
>
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>



-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org


RE: Security requirements are not satisfied because the security header is

2008-06-18 Thread Vinh Nguyen (vinguye2)
The SOAP you posted below is missing the namespace for the "wsse"
prefix.  Other than that, seems like you are using the
UsernameTokenProfile, and the structure looks ok to me.  You need to
check though what profile is expected by the server because they need to
match.
  

-Original Message-
From: sh_santosh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 11:57 PM
To: axis-user@ws.apache.org
Subject: Security requirements are not satisfied because the security
header is

>> not
Security Header is not present in the incoming message  Exception.
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: [EMAIL PROTECTED]


Dear All,

I have a Java Client generated by using Axis1.3.By use of my Java Client
I want to access a Web Service Implemented in .NET using WSE3.0
Standards.

When I tried to submit my Request using a method available in my Client
Class ,I am getting Exception that "Security requirements are not
satisfied because the security header is not present in the incoming
message". 

Then I have added the SOAP Security Headers(which are not available in
my Java Client Code) in my Stub Object  by using SOAPHeaderElement
Class's Object and Tried to submit the Request ,but still I got the Same
Exception.

Note : - That the Java Client Code Pass an Object as Request having
required Parameters and Gets the User Defined Object in Response.

I have to generate a Structure Like below inside my SOAPHeader Tag :


http://www.test/info
urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84

http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anony
mous

http://localhost:8080/bookingapi/bookingapi.asmx


2008-02-28T15:33:56Z
2008-02-28T15:38:56Z

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
urity-utility-1.0.xsd"
wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
[EMAIL PROTECTED]
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-t
oken-profile-1.0#PasswordText">SomePassword
5SImW1gykzSPdeiWzcCdaQ==
2008-02-28T15:33:56Z



 


Any Help at Java Code Level or any Guidance/Example will be highly
appreciated.

Thanks,
Ritesh.

--
View this message in context:
http://www.nabble.com/Security-requirements-are-not-satisfied-because-th
e-security-header-is%0D%0A%3E%3E-not%0D%0ASecurity-Header-is-not-present
-in-the-incoming-message-Exception.-tp17960865p17960865.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot unwrap element - only one child element allowed in sequenc e for wrapped output

2008-06-18 Thread Caffrey, Colm
Im having an issue using the WSDL2Java generator. In my schema, when I have
one element in a sequence, code gets generated ok. However, when I try to
add more than one element to a sequence, I get the following error when
attempting to generate code from the WSDL:

 

Cannot unwrap element
{http://xmlns.fmr.com/rating}getRatingSchemaListResponse: only one child
element allowed in sequence for wrapped output

 

 

Any suggestions as to why this error is being generated? Im not entirely
sure what it means by 'wrapped output' 

 

 

 

Thanks,

Colm



Re: problem using an external schema in a wsdl

2008-06-18 Thread Mauro Molinari

Try to post your WSDL and XSD.
I haven't had any problem with imported XSDs in my WSDLs when I used 
WSDL2Java.


--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Security requirements are not satisfied because the security header is not present in the incoming message.

2008-06-18 Thread sh_santosh

Hi Jose,

Thanks for your detailed reply,

As I am very new to Web services,It will take bit time to check out the
links(that I have already Started) mentioned by you.Will Come back to you
soon once I finished the R&D on the suggestions mentioned by you.

Thanks,
Ritesh.
 

José Ferreiro wrote:
> 
> Hello,
> 
> First you have to determine which Token profile you need to use[1]:
> Is it:
> - Username Token Profile
> -X.509 Token Profile
> - SAML Token profile
> - Kerberos Token Profile
> 
> most probably I will be Username Token Profile or X.509 Token Profile
> 
>  You will have two ways to do add the security header to your soap
> message:
> 
> Either you use Axis2 and rampart module to generate a client (stubs, etc,
> etc).
> You don't need to add a security header. The module will do the work for
> you.
> Obviously you have to add the right configuration files.
> You may download Axis2 and Rampart and there should be some examples in
> the
> package.
> 
> 
> Or you user Axis 1.3 with WSS4J.
> Same thing as above the security header of your SOAP message will be added
> by WSS4J according to
> the deployement files (extension is wsdd, which measn web service
> deployement descriptor)
> You may find examples in the package WSS4J.
> 
> Also this link [2] in the URL source code in the book you may download
> some
> examples.
> They show you the configuration of a such project with WSS4J.
> Please note that the author is using *X.509 Token profile*.
> 
> As you need to interoperate with donet. I will suggest you to read this
> article from Anne Thomas Manes [3].
> Dot net requires the "wrapped" style.
> 
> Hope this helps.
> 
> Jose FERREIRO
> 
> 
> [1] -
> http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss#overview
> [2] - http://www.agileskills2.org/DWSAA/v10pub/index.html
> [3] -
> http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html
> 
> 
> On 6/18/08, sh_santosh <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Jose,
>>
>> Thanks for your reply,
>>
>> Problem with my Java Client Code is that I have a Limitation that either
>> I
>> can add Security headers to my org.apache.axis.client.Call class object
>> or
>> in the Stub class object.
>>
>> Can you guide me about, how I can use WSS4J classes and method with my
>> Call
>> or Stub's Class Object.so that i can set the security headers.
>>
>> Can you provide me some sample Java code or example ,from where I can get
>> the idea that how should go further ,because right now I am totally
>> stucked
>> because of this.
>>
>> Thanks,
>> Ritesh.
>>
>>
>>
>> José Ferreiro wrote:
>> >
>> > Hello Ritesh,
>> >
>> > If you are using Axis 1.x (i.e Axis 1.1, 1.2, 1.3 or 1.4) [1] then you
>> > should use
>> > the library Apache WSS4J [2] and not "Rampart"
>> >
>> > "Rampart" is a module based on Apache WSS4J that provides the
>> WS-Security
>> > features for Axis2 [3][4].
>> >
>> > Hope this helps:
>> >
>> > José Ferreiro
>> >
>> > [1] - http://ws.apache.org/axis/
>> > [2] - http://ws.apache.org/wss4j/
>> > [3] -
>> http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html
>> > [4] - http://ws.apache.org/axis2/
>> >
>> >
>> > On Wed, Jun 18, 2008 at 11:12 AM, sh_santosh <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> >>
>> >> Hi Keith,
>> >>
>> >> I am using Axis1.3 version not Axis2.
>> >> So,is Rampart will work with Axis1.3 or it will work with only with
>> Axis2
>> >> and higher versions.
>> >>
>> >> Thanks,
>> >> Ritesh.
>> >>
>> >> sh_santosh wrote:
>> >> >
>> >> > Dear All,
>> >> >
>> >> > I have a Java Client generated by using Axis1.3.By use of my Java
>> >> Client
>> >> I
>> >> > want to access a Web Service Implemented in .NET using WSE3.0
>> >> Standards.
>> >> >
>> >> > When I tried to submit my Request using a method available in my
>> Client
>> >> > Class ,I am getting Exception that "Security requirements are not
>> >> > satisfied because the security header is not present in the incoming
>> >> > message".
>> >> >
>> >> > Then I have added the SOAP Security Headers(which are not available
>> in
>> >> my
>> >> > Java Client Code) in my Stub Object  by using SOAPHeaderElement
>> Class's
>> >> > Object and Tried to submit the Request ,but still I got the Same
>> >> > Exception.
>> >> >
>> >> > Note : - That the Java Client Code Pass an Object as Request having
>> >> > required Parameters and Gets the User Defined Object in Response.
>> >> >
>> >> > I have to generate a Structure Like below inside my SOAPHeader Tag :
>> >> >
>> >> > 
>> >> > http://www.test/info
>> >> >
>> >>
>> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
>> >> > 
>> >> > 
>> >> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
>> >> 
>> >> > 
>> >> > http://localhost:8080/bookingapi/bookingapi.asmx
>> >> > 
>> >> > > wsu:Id="Timestamp-c90b72e0-541c-4b17-bc0b-acf8c3495b43">
>> >> > 2008-02-28T15:33:56Z
>> >> > 2008-02-28T15:38:56Z
>> >> > 
>> >> > > >> > xmlns:wsu="
>> >>
>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.

RE: Axis Generates All Fields Not Nullable

2008-06-18 Thread Tim James McConechy
Here is the WSDL, not sure what you mean by the comment "this should be
the generated code".

Thanks Though

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 18, 2008 5:42 AM
To: axis-user@ws.apache.org
Subject: Re: Axis Generates All Fields Not Nullable

 

Can you send your wsdl? this should be be the generated code.

thanks,
Amila.

On Wed, Jun 18, 2008 at 1:04 AM, Tim James McConechy <
[EMAIL PROTECTED]> wrote:

Hi,

When I run wsdl2java from a .NET 1.1 web service axis adds code such as:

 

if (localitemCode ==null){

// write the nil attribute

throw new org.apache.axis2.databinding.ADBException("itemCode cannot be
null!!");

  

The WSDL looks like:

 



 

Why does it generate the field as required? Can I make it not do this?
Previously on axis 1.4 I would change setNillable(false) to
setNillable(true).

 

Thanks in advance

Tim McConechy | Principal Software Engineer | Infor | Office:
610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]

 




-- 
Amila Suriarachchi,
WSO2 Inc. 



WsItem.wsdl
Description: WsItem.wsdl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

2008-06-18 Thread Tim James McConechy
Seems to be the case - but why does it only occur in Axis2 and not Axis
1.4? I am going to try to setup an IIS 6.0 server and see if I can
compile in .NET 3.0...I should mention that after this any calls will
give a 403 and I need to restart IIS. But I can only trigger this with 5
calls from Axis2 - normally we have an other client app that throws
millions of requests at the server without these errors.

 



From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 11:32 PM
To: axis-user@ws.apache.org
Subject: Re: org.apache.axis2.AxisFault: Transport error: 403 Error:
Access Forbidden

 

Hi James,

I wonder weather this is a server side issue cause Status code (403)
indicates that the server understood the request but refused to fulfill
it.

Thanks,
Keith.

On Wed, Jun 18, 2008 at 1:12 AM, Tim James McConechy
<[EMAIL PROTECTED]> wrote:

 

Hi All,

I am stumped on the following problem. I am using Axis2 to connect to a
.Net 1.1 series of web services. Almost immediately but randomly - say
after five web service calls. I get the following error(s)

 

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

or

Software caused connection abort: recv failed

 

I simply cannot make Axis2 reliably function with my web services. I
generated the services with wsdl2java using adb, do I need to use Axis
1.4 instead? I have checked the web and saw similar posts but no
solutions...Anyone have any ideas?

 

Stack dumps:

 

11:39:46,101 ERROR http-8484-Processor22 [ObjectBaseService] Transport
error: 403 Error: Access Forbidden

org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

  at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.jav
a:296)

  at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
90)

  at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

...

 

Or

 

11:39:46,111 ERROR http-8484-Processor22 [ObjectBaseService] Software
caused connection abort: recv failed

org.apache.axis2.AxisFault: Software caused connection abort: recv
failed

  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

  at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
93)

  at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

...

 

Thanks

 

 

Tim McConechy | Principal Software Engineer | Infor | Office:
610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]

 




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org 



SAML confirmation method sender-vouches using policy

2008-06-18 Thread sylvester

Hi all,

I'm using Axis2 and Rampart (the latest releases). When I run sample 06 from
rampart policy samples which uses demonstrates the use of SAML the
confirmation method for the SAML token is holder-of-key. Is there a way to
change it to sender-vouches using policy configuration?
TIA

Regards,
Sylvester
-- 
View this message in context: 
http://www.nabble.com/SAML-confirmation-method-sender-vouches-using-policy-tp17981903p17981903.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Security requirements are not satisfied because the security header is not present in the incoming message.

2008-06-18 Thread José Ferreiro
Hello,

First you have to determine which Token profile you need to use[1]:
Is it:
- Username Token Profile
-X.509 Token Profile
- SAML Token profile
- Kerberos Token Profile

most probably I will be Username Token Profile or X.509 Token Profile

 You will have two ways to do add the security header to your soap message:

Either you use Axis2 and rampart module to generate a client (stubs, etc,
etc).
You don't need to add a security header. The module will do the work for
you.
Obviously you have to add the right configuration files.
You may download Axis2 and Rampart and there should be some examples in the
package.


Or you user Axis 1.3 with WSS4J.
Same thing as above the security header of your SOAP message will be added
by WSS4J according to
the deployement files (extension is wsdd, which measn web service
deployement descriptor)
You may find examples in the package WSS4J.

Also this link [2] in the URL source code in the book you may download some
examples.
They show you the configuration of a such project with WSS4J.
Please note that the author is using *X.509 Token profile*.

As you need to interoperate with donet. I will suggest you to read this
article from Anne Thomas Manes [3].
Dot net requires the "wrapped" style.

Hope this helps.

Jose FERREIRO


[1] -
http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss#overview
[2] - http://www.agileskills2.org/DWSAA/v10pub/index.html
[3] -
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html


On 6/18/08, sh_santosh <[EMAIL PROTECTED]> wrote:
>
>
> Hi Jose,
>
> Thanks for your reply,
>
> Problem with my Java Client Code is that I have a Limitation that either I
> can add Security headers to my org.apache.axis.client.Call class object or
> in the Stub class object.
>
> Can you guide me about, how I can use WSS4J classes and method with my Call
> or Stub's Class Object.so that i can set the security headers.
>
> Can you provide me some sample Java code or example ,from where I can get
> the idea that how should go further ,because right now I am totally stucked
> because of this.
>
> Thanks,
> Ritesh.
>
>
>
> José Ferreiro wrote:
> >
> > Hello Ritesh,
> >
> > If you are using Axis 1.x (i.e Axis 1.1, 1.2, 1.3 or 1.4) [1] then you
> > should use
> > the library Apache WSS4J [2] and not "Rampart"
> >
> > "Rampart" is a module based on Apache WSS4J that provides the WS-Security
> > features for Axis2 [3][4].
> >
> > Hope this helps:
> >
> > José Ferreiro
> >
> > [1] - http://ws.apache.org/axis/
> > [2] - http://ws.apache.org/wss4j/
> > [3] -
> http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html
> > [4] - http://ws.apache.org/axis2/
> >
> >
> > On Wed, Jun 18, 2008 at 11:12 AM, sh_santosh <[EMAIL PROTECTED]>
> > wrote:
> >
> >>
> >> Hi Keith,
> >>
> >> I am using Axis1.3 version not Axis2.
> >> So,is Rampart will work with Axis1.3 or it will work with only with
> Axis2
> >> and higher versions.
> >>
> >> Thanks,
> >> Ritesh.
> >>
> >> sh_santosh wrote:
> >> >
> >> > Dear All,
> >> >
> >> > I have a Java Client generated by using Axis1.3.By use of my Java
> >> Client
> >> I
> >> > want to access a Web Service Implemented in .NET using WSE3.0
> >> Standards.
> >> >
> >> > When I tried to submit my Request using a method available in my
> Client
> >> > Class ,I am getting Exception that "Security requirements are not
> >> > satisfied because the security header is not present in the incoming
> >> > message".
> >> >
> >> > Then I have added the SOAP Security Headers(which are not available in
> >> my
> >> > Java Client Code) in my Stub Object  by using SOAPHeaderElement
> Class's
> >> > Object and Tried to submit the Request ,but still I got the Same
> >> > Exception.
> >> >
> >> > Note : - That the Java Client Code Pass an Object as Request having
> >> > required Parameters and Gets the User Defined Object in Response.
> >> >
> >> > I have to generate a Structure Like below inside my SOAPHeader Tag :
> >> >
> >> > 
> >> > http://www.test/info
> >> >
> >>
> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
> >> > 
> >> > 
> >> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> >> 
> >> > 
> >> > http://localhost:8080/bookingapi/bookingapi.asmx
> >> > 
> >> >  wsu:Id="Timestamp-c90b72e0-541c-4b17-bc0b-acf8c3495b43">
> >> > 2008-02-28T15:33:56Z
> >> > 2008-02-28T15:38:56Z
> >> > 
> >> >  >> > xmlns:wsu="
> >>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> >> "
> >> > wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
> >> > [EMAIL PROTECTED]
> >> >  >> > Type="
> >>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> >> ">SomePassword
> >> > 5SImW1gykzSPdeiWzcCdaQ==
> >> > 2008-02-28T15:33:56Z
> >> > 
> >> > 
> >> > 
> >> >
> >> >
> >> >
> >> > Any Help at Java Code Level or any Guidance/Example will be highly
> >> > appreciated.
> >> >
> >> > Thanks,
> >> > Ritesh.
> >> >
> >> >
> >>
> >> --
> >> View this messag

problem using an external schema in a wsdl

2008-06-18 Thread Caffrey, Colm
Hi,

 

I'm having an issue when trying to run the WSDL2Java generator on a WSDL
that references an external .xsd file

 

The operation runs fine when I directly include the schema definition within
the  tags of my WSDL file.

 

However when I use an external .xsd file with identical contents I get an
error when running the WSDL2Java operation

 

 [java] Caused by: java.lang.RuntimeException:
java.net.URISyntaxException: Illegal character in path at index 42: 

.

 [java] at
org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(Defau
ltURIResolver.java:57)

 

Has anyone come across an issue like this?

 

 



create dynamically web service from Pojo without wsgen

2008-06-18 Thread Brunner, Wolfgang (extern)
Hello,

do Axis2 have an API to generate the webservices dynamically (only
annotations) without the step to generate stub classes or without
configuring any other xml files?
I have a solution with cxf but would like one with Axis2.

Regards,
Wolfgang 




Re: Security requirements are not satisfied because the security header is not present in the incoming message.

2008-06-18 Thread sh_santosh

Hi Jose,

Thanks for your reply,

Problem with my Java Client Code is that I have a Limitation that either I
can add Security headers to my org.apache.axis.client.Call class object or
in the Stub class object.

Can you guide me about, how I can use WSS4J classes and method with my Call
or Stub's Class Object.so that i can set the security headers.

Can you provide me some sample Java code or example ,from where I can get
the idea that how should go further ,because right now I am totally stucked
because of this.

Thanks,
Ritesh.



José Ferreiro wrote:
> 
> Hello Ritesh,
> 
> If you are using Axis 1.x (i.e Axis 1.1, 1.2, 1.3 or 1.4) [1] then you
> should use
> the library Apache WSS4J [2] and not "Rampart"
> 
> "Rampart" is a module based on Apache WSS4J that provides the WS-Security
> features for Axis2 [3][4].
> 
> Hope this helps:
> 
> José Ferreiro
> 
> [1] - http://ws.apache.org/axis/
> [2] - http://ws.apache.org/wss4j/
> [3] - http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html
> [4] - http://ws.apache.org/axis2/
> 
> 
> On Wed, Jun 18, 2008 at 11:12 AM, sh_santosh <[EMAIL PROTECTED]>
> wrote:
> 
>>
>> Hi Keith,
>>
>> I am using Axis1.3 version not Axis2.
>> So,is Rampart will work with Axis1.3 or it will work with only with Axis2
>> and higher versions.
>>
>> Thanks,
>> Ritesh.
>>
>> sh_santosh wrote:
>> >
>> > Dear All,
>> >
>> > I have a Java Client generated by using Axis1.3.By use of my Java
>> Client
>> I
>> > want to access a Web Service Implemented in .NET using WSE3.0
>> Standards.
>> >
>> > When I tried to submit my Request using a method available in my Client
>> > Class ,I am getting Exception that "Security requirements are not
>> > satisfied because the security header is not present in the incoming
>> > message".
>> >
>> > Then I have added the SOAP Security Headers(which are not available in
>> my
>> > Java Client Code) in my Stub Object  by using SOAPHeaderElement Class's
>> > Object and Tried to submit the Request ,but still I got the Same
>> > Exception.
>> >
>> > Note : - That the Java Client Code Pass an Object as Request having
>> > required Parameters and Gets the User Defined Object in Response.
>> >
>> > I have to generate a Structure Like below inside my SOAPHeader Tag :
>> >
>> > 
>> > http://www.test/info
>> >
>> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
>> > 
>> > 
>> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
>> 
>> > 
>> > http://localhost:8080/bookingapi/bookingapi.asmx
>> > 
>> > 
>> > 2008-02-28T15:33:56Z
>> > 2008-02-28T15:38:56Z
>> > 
>> > > > xmlns:wsu="
>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
>> "
>> > wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
>> > [EMAIL PROTECTED]
>> > > > Type="
>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
>> ">SomePassword
>> > 5SImW1gykzSPdeiWzcCdaQ==
>> > 2008-02-28T15:33:56Z
>> > 
>> > 
>> > 
>> >
>> >
>> >
>> > Any Help at Java Code Level or any Guidance/Example will be highly
>> > appreciated.
>> >
>> > Thanks,
>> > Ritesh.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is-not-present-in-the-incoming-message.-tp17960865p17976896.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is-not-present-in-the-incoming-message.-tp17960865p17980220.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Unexpected subelement

2008-06-18 Thread jeusdi

Hello list, I have a problem with Axis2 Web Service. I call my web service
deployed correctly on Axis2 web application, and I call it from a .NET
client generated from wsdl.exe Visual Studio tool. The response that I
receive from Axis2 is:

http://www.w3.org/2003/05/soap-envelope";>org.apache.axis2.databinding.ADBException: Unexpected
subelement processor

processor is a item of CreateLicenceRequest message defined in WSDL file as
follow-->


http://schemas.xmlsoap.org/wsdl/http/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:tns="http://www.grupmicros.com/LicenceManager/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
name="LicenceManager"
targetNamespace="http://www.grupmicros.com/LicenceManager/";>

  




  
  

  
  

  
  

  
  


  
  

  
  

  

  
  
Web Service for managing GmSoft software
licences

  http://www.example.org/"/>

  


I call it from .NET client as follow:
LicenceManager manager = new LicenceManager();
System.Xml.XmlElement element = manager.CreateLicence("mac", "processor",
"finestra", "client");

Thanks for all in advanced.
I will appreciate a lot your help.
-- 
View this message in context: 
http://www.nabble.com/Unexpected-subelement-tp17979173p17979173.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis Generates All Fields Not Nullable

2008-06-18 Thread Amila Suriarachchi
Can you send your wsdl? this should be be the generated code.

thanks,
Amila.

On Wed, Jun 18, 2008 at 1:04 AM, Tim James McConechy <
[EMAIL PROTECTED]> wrote:

>  Hi,
>
> When I run wsdl2java from a .NET 1.1 web service axis adds code such as:
>
>
>
> if (localitemCode ==null){
>
> // write the nil attribute
>
> throw new org.apache.axis2.databinding.ADBException("itemCode cannot be
> null!!");
>
>
>
> The WSDL looks like:
>
>
>
> 
>
>
>
> Why does it generate the field as required? Can I make it not do this?
> Previously on axis 1.4 I would change setNillable(false) to
> setNillable(true).
>
>
>
> Thanks in advance
>
> Tim McConechy | Principal Software Engineer | *Infor *| Office:
> 610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]
>
>
>



-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Security requirements are not satisfied because the security header is not present in the incoming message.

2008-06-18 Thread José Ferreiro
Hello Ritesh,

If you are using Axis 1.x (i.e Axis 1.1, 1.2, 1.3 or 1.4) [1] then you
should use
the library Apache WSS4J [2] and not "Rampart"

"Rampart" is a module based on Apache WSS4J that provides the WS-Security
features for Axis2 [3][4].

Hope this helps:

José Ferreiro

[1] - http://ws.apache.org/axis/
[2] - http://ws.apache.org/wss4j/
[3] - http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html
[4] - http://ws.apache.org/axis2/


On Wed, Jun 18, 2008 at 11:12 AM, sh_santosh <[EMAIL PROTECTED]>
wrote:

>
> Hi Keith,
>
> I am using Axis1.3 version not Axis2.
> So,is Rampart will work with Axis1.3 or it will work with only with Axis2
> and higher versions.
>
> Thanks,
> Ritesh.
>
> sh_santosh wrote:
> >
> > Dear All,
> >
> > I have a Java Client generated by using Axis1.3.By use of my Java Client
> I
> > want to access a Web Service Implemented in .NET using WSE3.0 Standards.
> >
> > When I tried to submit my Request using a method available in my Client
> > Class ,I am getting Exception that "Security requirements are not
> > satisfied because the security header is not present in the incoming
> > message".
> >
> > Then I have added the SOAP Security Headers(which are not available in my
> > Java Client Code) in my Stub Object  by using SOAPHeaderElement Class's
> > Object and Tried to submit the Request ,but still I got the Same
> > Exception.
> >
> > Note : - That the Java Client Code Pass an Object as Request having
> > required Parameters and Gets the User Defined Object in Response.
> >
> > I have to generate a Structure Like below inside my SOAPHeader Tag :
> >
> > 
> > http://www.test/info
> >
> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
> > 
> > 
> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> 
> > 
> > http://localhost:8080/bookingapi/bookingapi.asmx
> > 
> > 
> > 2008-02-28T15:33:56Z
> > 2008-02-28T15:38:56Z
> > 
> >  > xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> > wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
> > [EMAIL PROTECTED]
> >  > Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">SomePassword
> > 5SImW1gykzSPdeiWzcCdaQ==
> > 2008-02-28T15:33:56Z
> > 
> > 
> > 
> >
> >
> >
> > Any Help at Java Code Level or any Guidance/Example will be highly
> > appreciated.
> >
> > Thanks,
> > Ritesh.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is-not-present-in-the-incoming-message.-tp17960865p17976896.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden

2008-06-18 Thread Amila Suriarachchi
try to use the tcpmon[1] and see the request and response.

thanks,
Amila.

[1] http://ws.apache.org/commons/tcpmon/

On Wed, Jun 18, 2008 at 9:02 AM, keith chapman <[EMAIL PROTECTED]>
wrote:

> Hi James,
>
> I wonder weather this is a server side issue cause Status code (403)
> indicates that the server understood the request but refused to fulfill it.
>
> Thanks,
> Keith.
>
>
> On Wed, Jun 18, 2008 at 1:12 AM, Tim James McConechy <
> [EMAIL PROTECTED]> wrote:
>
>>
>>
>> Hi All,
>>
>> I am stumped on the following problem. I am using Axis2 to connect to a
>> .Net 1.1 series of web services. Almost immediately but randomly – say after
>> five web service calls. I get the following error(s)
>>
>>
>>
>> org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden
>>
>> or
>>
>> Software caused connection abort: recv failed
>>
>>
>>
>> I simply cannot make Axis2 reliably function with my web services. I
>> generated the services with wsdl2java using adb, do I need to use Axis 1.4
>> instead? I have checked the web and saw similar posts but no
>> solutions…Anyone have any ideas?
>>
>>
>>
>> Stack dumps:
>>
>>
>>
>> 11:39:46,101 ERROR http-8484-Processor22 [ObjectBaseService] Transport
>> error: 403 Error: Access Forbidden
>>
>> org.apache.axis2.AxisFault: Transport error: 403 Error: Access Forbidden
>>
>>   at org.apache.axis2.transport.http.HTTPSender.handleResponse(*
>> HTTPSender.java:296*)
>>
>>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(*
>> HTTPSender.java:190*)
>>
>>   at org.apache.axis2.transport.http.HTTPSender.send(*
>> HTTPSender.java:75*)
>>
>> …
>>
>>
>>
>> Or
>>
>>
>>
>> 11:39:46,111 ERROR http-8484-Processor22 [ObjectBaseService] Software
>> caused connection abort: recv failed
>>
>> org.apache.axis2.AxisFault: Software caused connection abort: recv failed
>>
>>   at org.apache.axis2.AxisFault.makeFault(*AxisFault.java:430*)
>>
>>   at org.apache.axis2.transport.http.HTTPSender.sendViaPost(*
>> HTTPSender.java:193*)
>>
>>   at org.apache.axis2.transport.http.HTTPSender.send(*
>> HTTPSender.java:75*)
>>
>> …
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>> Tim McConechy | Principal Software Engineer | *Infor *| Office:
>> 610.407.8191 | Mobile: 610.306.6603 | [EMAIL PROTECTED]
>>
>>
>>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org




-- 
Amila Suriarachchi,
WSO2 Inc.


Re: Accessing headers in server's response

2008-06-18 Thread Amila Suriarachchi
On Wed, Jun 18, 2008 at 2:44 PM, <[EMAIL PROTECTED]> wrote:

>
> Hello
>
>
> I wanted to read the header in the response from a ws server. As I use the
> client stub
> generated by Axis2, it turned out to be a rather clever thing to do.
> My header are explicit and are typed in the XSD, therefore Axis2 wsdl2java
> generates a class to
> represent them (and, unfortunately, never populate it from within the
> stub). The class
> is SyncResponseHeader. And this is how I get it from a class which inherits
> from the generated
> Stub (so "this" is the Stub).
>
>
> SOAPEnvelope env =
> this._serviceClient.getLastOperationContext().getMessageContext("In").getEnvelope();
> SOAPHeader h =  env.getHeader();
> SyncResponseHeader resp =
> SyncResponseHeader.Factory.parse(h.getFirstElement().getXMLStreamReaderWithoutCaching());
>
> (maybe I should use "handlers" ? but I don't know how to do that)


The operation method returns the response object corresponds to soap body
Element. If you want to get the header out side the stub you can use
stub._getServiceClient() method. then you don't have to change the stub.

>
>
> I'd like to mention something now. It looks like I'm not the one who
> encountered this issue.
> There was an answer in this mail:
>
> http://marc.info/?l=axis-user&m=116502112920378&w=2
>
> Even though the answer was useful I think it misses the point. Newbie users
> like me are
> expecting wsdl2java to produce a stub that is usable << as is >>. So
> although Axis behaves
> as expected (which by no means that what I expect is what it should do :)),
> if the stub doesn't, then it's of no use. It's even worse if we have to
> modify the stub ourselves because each time the WSDL changes, we have to
> remodify the stub.
> I know the stub is probably not designed for << production use >> but
> that's how I use it.

No it is design to use in production use. Try to write that code in your
client using _getServiceClient() method without modifying the stub.

thanks,
Amila.

>
>
> So, next time there's an answer about the stub, I think it would be better
> to provide an answer
> which does not imply modifying the stub (again, most of the time I inherit
> form it which
> allows some flexibility).
>
> stF




-- 
Amila Suriarachchi,
WSO2 Inc.


Accessing headers in server's response

2008-06-18 Thread stefan . champailler
Hello


I wanted to read the header in the response from a ws server. As I use the 
client stub
generated by Axis2, it turned out to be a rather clever thing to do.
My header are explicit and are typed in the XSD, therefore Axis2 wsdl2java 
generates a class to
represent them (and, unfortunately, never populate it from within the 
stub). The class
is SyncResponseHeader. And this is how I get it from a class which 
inherits from the generated
Stub (so "this" is the Stub).


SOAPEnvelope env = 
this._serviceClient.getLastOperationContext().getMessageContext("In").getEnvelope();
SOAPHeader h =  env.getHeader();
SyncResponseHeader resp = 
SyncResponseHeader.Factory.parse(h.getFirstElement().getXMLStreamReaderWithoutCaching());

(maybe I should use "handlers" ? but I don't know how to do that)

I'd like to mention something now. It looks like I'm not the one who 
encountered this issue.
There was an answer in this mail:

http://marc.info/?l=axis-user&m=116502112920378&w=2

Even though the answer was useful I think it misses the point. Newbie 
users like me are
expecting wsdl2java to produce a stub that is usable << as is >>. So 
although Axis behaves
as expected (which by no means that what I expect is what it should do 
:)), if the stub doesn't, then it's of no use. It's even worse if we have 
to
modify the stub ourselves because each time the WSDL changes, we have to 
remodify the stub.
I know the stub is probably not designed for << production use >> but 
that's how I use it.

So, next time there's an answer about the stub, I think it would be better 
to provide an answer
which does not imply modifying the stub (again, most of the time I inherit 
form it which
allows some flexibility).

stF

Re: Security requirements are not satisfied because the security header is not present in the incoming message.

2008-06-18 Thread sh_santosh

Hi Keith,

I am using Axis1.3 version not Axis2.
So,is Rampart will work with Axis1.3 or it will work with only with Axis2
and higher versions.

Thanks,
Ritesh.

sh_santosh wrote:
> 
> Dear All,
> 
> I have a Java Client generated by using Axis1.3.By use of my Java Client I
> want to access a Web Service Implemented in .NET using WSE3.0 Standards.
> 
> When I tried to submit my Request using a method available in my Client
> Class ,I am getting Exception that "Security requirements are not
> satisfied because the security header is not present in the incoming
> message". 
> 
> Then I have added the SOAP Security Headers(which are not available in my
> Java Client Code) in my Stub Object  by using SOAPHeaderElement Class's
> Object and Tried to submit the Request ,but still I got the Same
> Exception.
> 
> Note : - That the Java Client Code Pass an Object as Request having
> required Parameters and Gets the User Defined Object in Response.
> 
> I have to generate a Structure Like below inside my SOAPHeader Tag :
> 
> 
> http://www.test/info
> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
> 
> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> 
> http://localhost:8080/bookingapi/bookingapi.asmx
> 
> 
> 2008-02-28T15:33:56Z
> 2008-02-28T15:38:56Z
> 
>  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
> [EMAIL PROTECTED]
>  Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>SomePassword
> 5SImW1gykzSPdeiWzcCdaQ==
> 2008-02-28T15:33:56Z
> 
> 
> 
>  
> 
> 
> Any Help at Java Code Level or any Guidance/Example will be highly
> appreciated.
> 
> Thanks,
> Ritesh.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is-not-present-in-the-incoming-message.-tp17960865p17976896.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [axis2] How can I use WSDL2 in axis2??

2008-06-18 Thread Takashi Saruhashi
Thnaks so much Keith!

 

I tried to create stubs from auto-generated wsdl2 file from axis2.

 

When I try to use WSDL2JAVA command like this.

 

wsdl2java.bat -uri Test.wsdl -p test -wv 2.0 -uw

 

Then I got those errors and warnings,

 

Using AXIS2_HOME:   C:\axis2-1.4

Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_15

Woden[Error],0:0,WSDL520,Extension element
"{http://www.w3.org/ns/wsdl}outfault"; in the context of
"org.apache.woden.wsdl20.xml.BindingEleme

nt" must not be in the WSDL 2.0 namespace.

Woden[Error],0:0,WSDL520,Extension element
"{http://www.w3.org/ns/wsdl}outfault"; in the context of
"org.apache.woden.wsdl20.xml.BindingEleme

nt" must not be in the WSDL 2.0 namespace.

Woden[Error],0:0,WSDL520,Extension element
"{http://www.w3.org/ns/wsdl}outfault"; in the context of
"org.apache.woden.wsdl20.xml.BindingEleme

nt" must not be in the WSDL 2.0 namespace.

[WARN] Type {http://www.w3.org/2001/XMLSchema}Enum missing!

[WARN] Type {http://www.w3.org/2001/XMLSchema}Enum missing!

 

I have no idea why it happens  I simply use auto-generated WSDL2
file by axis2...

Also, I got those warnings when I try with WSDL1.1

That never happened with axis2.1.13

 

Could anyone tell me how can I fix those problems???

 

$ wsdl2java.bat -uri Test1.xml -p test1 -wv 1.1 -uw

Using AXIS2_HOME:   C:\axis2-1.4

Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_15

Retrieving document at 'PriceService1.xml'.

[WARN] Type {http://www.w3.org/2001/XMLSchema}Enum missing!

[WARN] Type {http://www.w3.org/2001/XMLSchema}Enum missing!

 

 

Best regards.

Takashi

 

 



From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 4:17 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] How can I use WSDL2 in axis2??

 

Hi Takashi,

I'll be glad to help you get going. On a user point of view there is no
real difference between using WSDL 1.1 and WSDL 2.0 when deploying a
service. If you drop a wsdl (foo.wsdl which is a WSDL 2.0 representation
for your service) into the META-INF directory of the service archive
then axis2 will use that to build the AxisService (provided the
serviceName in the WSDL matches the serviceName in the services.xml). 

Axis2 tools support WSDL 2.0 too. so you can use both java2wsdl and
wsdl2java by providing the -wv 2.0 option (To indicate that its
processing a WSDL 2).

Thanks,
Keith.

On Tue, Jun 17, 2008 at 7:22 PM, Takashi Saruhashi
<[EMAIL PROTECTED]> wrote:


Hello all,

I checked public document of axis2 and found that axis2 applies to
WSDL2.
I want to use WSDL2 instead of WSDL1.1.

Simply, I tried to replace auto generated WSDL1.1 file by axis2 to
WSDL2.
Then I got a lot of Exceptions because of that.

Could anybody suggest me how to deal with WSDL2??
I tried to google the documents about it but in vain


Best regards.
Takashi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org 



high-resolution "Powered by Apache Axis2" and "Powered by Tomcat" Logos

2008-06-18 Thread Kathrin04

we would like to start a campaign where we offer to create a SOA built on the
Open Source Stack , therefore we have all logos of the stack on our flyer
and we would like to have the "Powered by Apache Axis2" and "Powered by
Tomcat" logos also there. Therefore we need a high-resolution logos for
print media. 
Who has a high-resolution logos, please send us on e-mail: [EMAIL PROTECTED]

Thank you very much.
-- 
View this message in context: 
http://www.nabble.com/high-resolution-%22Powered-by-Apache-Axis2%22-and-%22Powered-by-Tomcat%22-Logos-tp17973024p17973024.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Security requirements are not satisfied because the security header is

2008-06-18 Thread keith chapman
Just to clarify are you using Axis2 1.3? or Axis?

Rampart works with Axis2.

Thanks,
Keith.

On Wed, Jun 18, 2008 at 1:17 PM, sh_santosh <[EMAIL PROTECTED]> wrote:

>
> Hi Keith,
> Firstly,thanks for reply.
>
> I tell you some more things like,
>
> I am a Service Requester(i.e. I want to consume the web service.).Also, the
> WSDL provided to me does not contain any policy stating that what security
> measures should be taken to access the service.Neither it contains any
> security headers Information.
> I have added security headers by hand because there is no provision in my
> Java Client Code(Generated from the given WSDL) to add security headers in
> the Stub or Call Object.I searched and saw over internet about Rampart,but
> is Rampart is Compatible with Axis1.3 ,if yes that how can I engage Rampart
> with my Client Code?.
>
> Any example,sample code or link will be helpful.
>
> Thanks.
>
> keith chapman wrote:
> >
> > Hi Santosh,
> >
> > Why are you adding the security header by hand? Didn't you engage rampart
> > on
> > the client side with the required security policy so that rampart will
> add
> > these security headers for you?  Does the WSDL include a policy stating
> > what
> > security measures should be taken to access the service?
> >
> > Thanks,
> > Keith.
> >
> > On Wed, Jun 18, 2008 at 12:26 PM, sh_santosh <[EMAIL PROTECTED]>
> > wrote:
> >
> >> >> not
> >> Security Header is not present in the incoming message
> >>  Exception.
> >> MIME-Version: 1.0
> >> Content-Type: text/plain; charset=us-ascii
> >> Content-Transfer-Encoding: 7bit
> >> X-Nabble-From: [EMAIL PROTECTED]
> >>
> >>
> >> Dear All,
> >>
> >> I have a Java Client generated by using Axis1.3.By use of my Java
> Client
> >> I
> >> want to access a Web Service Implemented in .NET using WSE3.0 Standards.
> >>
> >> When I tried to submit my Request using a method available in my Client
> >> Class ,I am getting Exception that "Security requirements are not
> >> satisfied
> >> because the security header is not present in the incoming message".
> >>
> >> Then I have added the SOAP Security Headers(which are not available in
> my
> >> Java Client Code) in my Stub Object  by using SOAPHeaderElement Class's
> >> Object and Tried to submit the Request ,but still I got the Same
> >> Exception.
> >>
> >> Note : - That the Java Client Code Pass an Object as Request having
> >> required
> >> Parameters and Gets the User Defined Object in Response.
> >>
> >> I have to generate a Structure Like below inside my SOAPHeader Tag :
> >>
> >> 
> >> http://www.test/info
> >>
> >>
> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
> >> 
> >> 
> >> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> >> 
> >> 
> >> http://localhost:8080/bookingapi/bookingapi.asmx
> >> 
> >> 
> >> 2008-02-28T15:33:56Z
> >> 2008-02-28T15:38:56Z
> >> 
> >>  >> xmlns:wsu="
> >>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> >> "
> >> wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
> >> [EMAIL PROTECTED]
> >>  >> Type="
> >>
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> >> ">SomePassword
> >> 5SImW1gykzSPdeiWzcCdaQ==
> >> 2008-02-28T15:33:56Z
> >> 
> >> 
> >> 
> >>
> >>
> >>
> >> Any Help at Java Code Level or any Guidance/Example will be highly
> >> appreciated.
> >>
> >> Thanks,
> >> Ritesh.
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is%0D%0A%3E%3E-not%0D%0ASecurity-Header-is-not-present-in-the-incoming-message-Exception.-tp17960865p17960865.html
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Keith Chapman
> > Senior Software Engineer
> > WSO2 Inc.
> > Oxygenating the Web Service Platform.
> > http://wso2.org/
> >
> > blog: http://www.keith-chapman.org
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is-not-present-in-the-incoming-message.-tp17960865p17961464.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Security requirements are not satisfied because the security header is

2008-06-18 Thread sh_santosh

Hi Keith,
Firstly,thanks for reply.

I tell you some more things like,

I am a Service Requester(i.e. I want to consume the web service.).Also, the
WSDL provided to me does not contain any policy stating that what security
measures should be taken to access the service.Neither it contains any
security headers Information.
I have added security headers by hand because there is no provision in my
Java Client Code(Generated from the given WSDL) to add security headers in
the Stub or Call Object.I searched and saw over internet about Rampart,but
is Rampart is Compatible with Axis1.3 ,if yes that how can I engage Rampart
with my Client Code?.

Any example,sample code or link will be helpful.

Thanks.

keith chapman wrote:
> 
> Hi Santosh,
> 
> Why are you adding the security header by hand? Didn't you engage rampart
> on
> the client side with the required security policy so that rampart will add
> these security headers for you?  Does the WSDL include a policy stating
> what
> security measures should be taken to access the service?
> 
> Thanks,
> Keith.
> 
> On Wed, Jun 18, 2008 at 12:26 PM, sh_santosh <[EMAIL PROTECTED]>
> wrote:
> 
>> >> not
>> Security Header is not present in the incoming message
>>  Exception.
>> MIME-Version: 1.0
>> Content-Type: text/plain; charset=us-ascii
>> Content-Transfer-Encoding: 7bit
>> X-Nabble-From: [EMAIL PROTECTED]
>>
>>
>> Dear All,
>>
>> I have a Java Client generated by using Axis1.3.By use of my Java Client
>> I
>> want to access a Web Service Implemented in .NET using WSE3.0 Standards.
>>
>> When I tried to submit my Request using a method available in my Client
>> Class ,I am getting Exception that "Security requirements are not
>> satisfied
>> because the security header is not present in the incoming message".
>>
>> Then I have added the SOAP Security Headers(which are not available in my
>> Java Client Code) in my Stub Object  by using SOAPHeaderElement Class's
>> Object and Tried to submit the Request ,but still I got the Same
>> Exception.
>>
>> Note : - That the Java Client Code Pass an Object as Request having
>> required
>> Parameters and Gets the User Defined Object in Response.
>>
>> I have to generate a Structure Like below inside my SOAPHeader Tag :
>>
>> 
>> http://www.test/info
>>
>> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
>> 
>> 
>> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
>> 
>> 
>> http://localhost:8080/bookingapi/bookingapi.asmx
>> 
>> 
>> 2008-02-28T15:33:56Z
>> 2008-02-28T15:38:56Z
>> 
>> > xmlns:wsu="
>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
>> "
>> wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
>> [EMAIL PROTECTED]
>> > Type="
>> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
>> ">SomePassword
>> 5SImW1gykzSPdeiWzcCdaQ==
>> 2008-02-28T15:33:56Z
>> 
>> 
>> 
>>
>>
>>
>> Any Help at Java Code Level or any Guidance/Example will be highly
>> appreciated.
>>
>> Thanks,
>> Ritesh.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is%0D%0A%3E%3E-not%0D%0ASecurity-Header-is-not-present-in-the-incoming-message-Exception.-tp17960865p17960865.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
> 
> blog: http://www.keith-chapman.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is-not-present-in-the-incoming-message.-tp17960865p17961464.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Security requirements are not satisfied because the security header is

2008-06-18 Thread keith chapman
Hi Santosh,

Why are you adding the security header by hand? Didn't you engage rampart on
the client side with the required security policy so that rampart will add
these security headers for you?  Does the WSDL include a policy stating what
security measures should be taken to access the service?

Thanks,
Keith.

On Wed, Jun 18, 2008 at 12:26 PM, sh_santosh <[EMAIL PROTECTED]>
wrote:

> >> not
> Security Header is not present in the incoming message
>  Exception.
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> X-Nabble-From: [EMAIL PROTECTED]
>
>
> Dear All,
>
> I have a Java Client generated by using Axis1.3.By use of my Java Client I
> want to access a Web Service Implemented in .NET using WSE3.0 Standards.
>
> When I tried to submit my Request using a method available in my Client
> Class ,I am getting Exception that "Security requirements are not satisfied
> because the security header is not present in the incoming message".
>
> Then I have added the SOAP Security Headers(which are not available in my
> Java Client Code) in my Stub Object  by using SOAPHeaderElement Class's
> Object and Tried to submit the Request ,but still I got the Same Exception.
>
> Note : - That the Java Client Code Pass an Object as Request having
> required
> Parameters and Gets the User Defined Object in Response.
>
> I have to generate a Structure Like below inside my SOAPHeader Tag :
>
> 
> http://www.test/info
>
> urn:uuid:ca6e465b-484a-4bb5-964f-eb513938bb84
> 
> 
> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
> 
> 
> http://localhost:8080/bookingapi/bookingapi.asmx
> 
> 
> 2008-02-28T15:33:56Z
> 2008-02-28T15:38:56Z
> 
>  xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> wsu:Id="SecurityToken-9e141575-2400-4c6d-ab86-1d5af61727b2">
> [EMAIL PROTECTED]
>  Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">SomePassword
> 5SImW1gykzSPdeiWzcCdaQ==
> 2008-02-28T15:33:56Z
> 
> 
> 
>
>
>
> Any Help at Java Code Level or any Guidance/Example will be highly
> appreciated.
>
> Thanks,
> Ritesh.
>
> --
> View this message in context:
> http://www.nabble.com/Security-requirements-are-not-satisfied-because-the-security-header-is%0D%0A%3E%3E-not%0D%0ASecurity-Header-is-not-present-in-the-incoming-message-Exception.-tp17960865p17960865.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org