Re: Unexpected subelement, encryption problem

2007-05-15 Thread Jon Horsman

I never got a chance to confirm the messages as i got pulled off this
at work shortly after this post.  I'm looking at this again now and
have noticed that the bug report has a few more items added and it
looks like the problem is found.  Is there a known workaround for this
or an approximate timeline this fix will make it into a nightly build?
I'm supposed to have a GA candidate load of our product done in ~ 1
weeks time and i need to find a workaround to this (ie. my messages
need to be encrypted.)

Thanks,

Jon.

PS. I plan on confirming that i'm seeing the same thing as Jochen tomorrow.

On 5/10/07, Jon Horsman <[EMAIL PROTECTED]> wrote:

> see my comment on this issue.
> http://issues.apache.org/jira/browse/RAMPART-29
> Can you find the decripted message and send us?

"you can put an System.out at the message Receiver and see the message"

I'll see if i can figure out exactly where to put the system.out but I
haven't done any axis coding so i'm not very familiar with axis in
general, i was just tasked to make things secure.  Hopefully the
message receiver class is obvious, if not, i'll post back asking  you
to be more specific if possible.

> It looks a little bit strange, ... maybe it is an axis2 bug and not a rampart 
bug. But please
> take a look. I'm not so deep inside the axis stuff!

Is there a known workaround for this issue?  Our web service is
supposed to be going to a client with a very large contract soon and
they won't accept it if its not sending secure messages.  As mentioned
i'm not very familiar with what axis has to offer, if there is no
known workaround for this is there another technology/way to get axis
to send its info encrypted?

Thanks,

Jon.



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



Re: Unexpected subelement, encryption problem

2007-05-10 Thread Jon Horsman

see my comment on this issue.
http://issues.apache.org/jira/browse/RAMPART-29
Can you find the decripted message and send us?


"you can put an System.out at the message Receiver and see the message"

I'll see if i can figure out exactly where to put the system.out but I
haven't done any axis coding so i'm not very familiar with axis in
general, i was just tasked to make things secure.  Hopefully the
message receiver class is obvious, if not, i'll post back asking  you
to be more specific if possible.


It looks a little bit strange, ... maybe it is an axis2 bug and not a rampart 
bug. But please
take a look. I'm not so deep inside the axis stuff!


Is there a known workaround for this issue?  Our web service is
supposed to be going to a client with a very large contract soon and
they won't accept it if its not sending secure messages.  As mentioned
i'm not very familiar with what axis has to offer, if there is no
known workaround for this is there another technology/way to get axis
to send its info encrypted?

Thanks,

Jon.

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



Re: Unexpected subelement, encryption problem

2007-05-10 Thread Jochen Zink
Hi,

I have captured the messages and have done some tests. You can see the very 
strange results an the issue. http://issues.apache.org/jira/browse/RAMPART-29

It looks a little bit strange, ... maybe it is an axis2 bug and not a rampart 
bug. But please take a look. I'm not so deep inside the axis stuff!

thanks


> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 10.05.07 09:00:24
> An: axis-user@ws.apache.org
> Betreff: Re: Unexpected subelement, encryption problem

see my comment on this issue. http://issues.apache.org/jira/browse/RAMPART-29
> Can you find the decripted message and send us?
> 
> 
> 
> On 5/10/07, Jochen Zink <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I have not a solution for your problem, because I have the same one :)
> 
> Please take a look at this bug http://issues.apache.org/jira/browse/RAMPART-29
> 
> 
> Maybe it hits your problem, to.
> 
> regards
> Jochen
> 
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: axis-user@ws.apache.org
> > Gesendet: 09.05.07 20:24:16
> > An: axis-user@ws.apache.org
> > Betreff: Unexpected subelement, encryption problem
> 
> 
> >
> > Hello,
> >
> > I'm trying to get encryption working with axis using rampart.  I was
> 
> > having a hard time getting everything working but think i have worked
> > through all the encryption related setup issues (i'm not getting
> > random exceptions anymore).
> >
> > I currently have the following in my axis2.xml file
> >
> > 
> > 
> > 
> > Encrypt
> > jontest
> 
> > com.mitel.me.soap.ssserver.TestCallBack
> > client.properties
> > 
> > 
> 
> > 
> > 
> > Encrypt
> > client.properties
> > 
> com.mitel.me.soap.ssserver.TestCallBack
> > 
> > 
> >
> > client.properties looks like
> >
> > org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> 
> > org.apache.ws.security.crypto.merlin.keystore.type=jks
> > org.apache.ws.security.crypto.merlin.file=testkeystore
> > org.apache.ws.security.crypto.merlin.keystore.password=default
> >
> > I created the key using
> 
> >
> > keytool -genkey -keyalg rsa -alias ME -keypass default -keystore
> > testkeystore -storepass default
> >
> > When i start up tomcat i immediately get an error message.
> >
> > "java.lang.RuntimeException
> : Unexpected subelement Result"
> >
> > This is being thrown from an auto generated 'parse' method in one of
> > the stub files as seen below.
> >
> > public static LoginResponse parse(javax.xml.stream.XMLStreamReader
> 
> > reader) throws java.lang.Exception
> >
> > 
> > if (reader.isStartElement() && new
> > javax.xml.namespace.QName("","return").equals(reader.getName
> ())){
> >  
> > object.set_return(com.mitel.www.mixml.ss.CmdResponse.Factory.parse(reader));
> >  reader.next();
> > }  // End of if for expected property start element
> > else{
> > // A start element we are not expecting indicates an invalid parameter
> 
> > was passed
> > throw new java.lang.RuntimeException("Unexpected subelement " +
> > reader.getLocalName());
> > }
> >
> > If i comment out the encryption stuff in the axis2.xml file that i
> 
> > mentioned above our web service functions as expected.  I'm pretty
> > much at a loss as to what the problem could be.  I've tried attaching
> > the debugger and stepping through the auto generated code and nothing
> 
> > is jumping out at me as being 'wrong'.
> >
> > Anyone have any advice?
> >
> > Thanks,
> >
> > Jon H.
> >
> > -
> 
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> >
> >
> 
> 
> ___
> SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
> kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
> 
> 
> -
> To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> Amila Suriarachchi,
> 
> WSO2 Inc.
> 


___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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



Re: Unexpected subelement, encryption problem

2007-05-10 Thread Amila Suriarachchi

see my comment on this issue.
http://issues.apache.org/jira/browse/RAMPART-29
Can you find the decripted message and send us?


On 5/10/07, Jochen Zink <[EMAIL PROTECTED]> wrote:


Hello,

I have not a solution for your problem, because I have the same one :)

Please take a look at this bug
http://issues.apache.org/jira/browse/RAMPART-29

Maybe it hits your problem, to.

regards
Jochen



> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 09.05.07 20:24:16
> An: axis-user@ws.apache.org
> Betreff: Unexpected subelement, encryption problem


>
> Hello,
>
> I'm trying to get encryption working with axis using rampart.  I was
> having a hard time getting everything working but think i have worked
> through all the encryption related setup issues (i'm not getting
> random exceptions anymore).
>
> I currently have the following in my axis2.xml file
>
> 
> 
> 
> Encrypt
> jontest
> com.mitel.me.soap.ssserver.TestCallBack

> client.properties
> 
> 
> 
> 
> Encrypt
> client.properties
> com.mitel.me.soap.ssserver.TestCallBack

> 
> 
>
> client.properties looks like
>
>
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> org.apache.ws.security.crypto.merlin.keystore.type=jks
> org.apache.ws.security.crypto.merlin.file=testkeystore
> org.apache.ws.security.crypto.merlin.keystore.password=default
>
> I created the key using
>
> keytool -genkey -keyalg rsa -alias ME -keypass default -keystore
> testkeystore -storepass default
>
> When i start up tomcat i immediately get an error message.
>
> "java.lang.RuntimeException: Unexpected subelement Result"
>
> This is being thrown from an auto generated 'parse' method in one of
> the stub files as seen below.
>
> public static LoginResponse parse(javax.xml.stream.XMLStreamReader
> reader) throws java.lang.Exception
>
> 
> if (reader.isStartElement() && new
> javax.xml.namespace.QName("","return").equals(reader.getName())){
>  object.set_return(com.mitel.www.mixml.ss.CmdResponse.Factory.parse
(reader));
>  reader.next();
> }  // End of if for expected property start element
> else{
> // A start element we are not expecting indicates an invalid parameter
> was passed
> throw new java.lang.RuntimeException("Unexpected subelement " +
> reader.getLocalName());
> }
>
> If i comment out the encryption stuff in the axis2.xml file that i
> mentioned above our web service functions as expected.  I'm pretty
> much at a loss as to what the problem could be.  I've tried attaching
> the debugger and stepping through the auto generated code and nothing
> is jumping out at me as being 'wrong'.
>
> Anyone have any advice?
>
> Thanks,
>
> Jon H.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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





--
Amila Suriarachchi,
WSO2 Inc.


Re: Unexpected subelement, encryption problem

2007-05-09 Thread Jochen Zink
Hello,

I have not a solution for your problem, because I have the same one :)

Please take a look at this bug http://issues.apache.org/jira/browse/RAMPART-29

Maybe it hits your problem, to.

regards
Jochen



> -Ursprüngliche Nachricht-
> Von: axis-user@ws.apache.org
> Gesendet: 09.05.07 20:24:16
> An: axis-user@ws.apache.org
> Betreff: Unexpected subelement, encryption problem


> 
> Hello,
> 
> I'm trying to get encryption working with axis using rampart.  I was
> having a hard time getting everything working but think i have worked
> through all the encryption related setup issues (i'm not getting
> random exceptions anymore).
> 
> I currently have the following in my axis2.xml file
> 
> 
> 
> 
> Encrypt
> jontest
> com.mitel.me.soap.ssserver.TestCallBack
> client.properties
> 
> 
> 
> 
> Encrypt
> client.properties
> com.mitel.me.soap.ssserver.TestCallBack
> 
> 
> 
> client.properties looks like
> 
> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
> org.apache.ws.security.crypto.merlin.keystore.type=jks
> org.apache.ws.security.crypto.merlin.file=testkeystore
> org.apache.ws.security.crypto.merlin.keystore.password=default
> 
> I created the key using
> 
> keytool -genkey -keyalg rsa -alias ME -keypass default -keystore
> testkeystore -storepass default
> 
> When i start up tomcat i immediately get an error message.
> 
> "java.lang.RuntimeException: Unexpected subelement Result"
> 
> This is being thrown from an auto generated 'parse' method in one of
> the stub files as seen below.
> 
> public static LoginResponse parse(javax.xml.stream.XMLStreamReader
> reader) throws java.lang.Exception
> 
> 
> if (reader.isStartElement() && new
> javax.xml.namespace.QName("","return").equals(reader.getName())){
>  
> object.set_return(com.mitel.www.mixml.ss.CmdResponse.Factory.parse(reader));
>  reader.next();
> }  // End of if for expected property start element
> else{
> // A start element we are not expecting indicates an invalid parameter
> was passed
> throw new java.lang.RuntimeException("Unexpected subelement " +
> reader.getLocalName());
> }
> 
> If i comment out the encryption stuff in the axis2.xml file that i
> mentioned above our web service functions as expected.  I'm pretty
> much at a loss as to what the problem could be.  I've tried attaching
> the debugger and stepping through the auto generated code and nothing
> is jumping out at me as being 'wrong'.
> 
> Anyone have any advice?
> 
> Thanks,
> 
> Jon H.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


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