Re: problem with returning array of objects

2009-09-10 Thread Alberto Patino
Replace
 











with complexType only

On Thu, Sep 10, 2009 at 7:45 AM, Pär Malmqvist wrote:

>  Hello!
>
> Thanks Amila för your reply.
> I changed the row  name="return" type="tns:Atc"/>
> into  type="tns:Atc"/>
> as you suggested.
>
> When I check the generated file GetAtcsByAtcCodeResponse.java this time I
> see no field at all that could hold the array value.
>
> What could be the problem?
>
> /Pär Malmqvist
>
>
>
>
>
>
>
>
>
> --
> Date: Wed, 9 Sep 2009 19:18:28 +0530
> Subject: Re: problem with returning array of objects
> From: amilasuriarach...@gmail.com
> To: axis-user@ws.apache.org
>
>
>
>
> On Wed, Sep 9, 2009 at 6:48 PM, Pär Malmqvist 
> wrote:
>
>  Hello!
>
> I have problem with generating server side code from my wsdl file.
> The wsdl file contains a service, getAtcsByAtcCode, that should return an
> array of Atc-objects.
> But my generated code returns OMElement[] instead.
>
> I use this wsdl file:
>
> 
> http://main.sol";
> xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:tns="http://main.sol";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> 
> http://main.sol";
> xmlns="http://www.w3.org/2001/XMLSchema";
> xmlns:apachesoap="http://xml.apache.org/xml-soap";
> xmlns:tns="http://main.sol"; xmlns:intf="http://main.sol";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>  name="return" type="tns:Atc"/>
>
>
> this type should be a complex type. not an element.
>
> thanks,
> Amila.
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>  name="getAtcsByAtcCodeRequest"/>
>  name="getAtcsByAtcCodeResponse"/>
>  name="SolExceptionFault"/>
> 
> 
>
> 
> http://schemas.xmlsoap.org/soap/http"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> http://localhost:8080/axis2/services/SolDB2"/>
> 
> 
>
> 
>
>
>
> I generate my service with the following ant task:
>
> (lib directory contains all Axis2 jars)
>
>
> 
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
>
>
>
> When I check the generated file GetAtcsByAtcCodeResponse.java I see that
> the object contains an
> array of org.apache.axiom.om.OMElement[] instead of sol.main.Atc[].
>
>
> Is there something wrong with my wsdl file?
> Or is this the way to do when returning array of objects at the service
> side?
>
> Regards
>
> Pär Malmqvist
>
>
>
> --
> Share your memories online with anyone you want anyone you 
> want.
>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>
> --
> With Windows Live, you can organize, edit, and share your 
> photos.
>



-- 
Don't be evil!!!


Re: [Axis2] Calling a service from another service

2007-11-30 Thread Alberto Patino
Hi!

I got a similar problem under the same pattern you are trying to
execute, and it was basically a problem related with WS-Addressing (
The ServiceConfig  in the axis2 service it has WS-Addresing enabled by
default, so when you create a Serviceclinet inside the server you are
using the same ServiceConfig instantiated in the server). Please be
sure that your second web service has a soapAction entry with a valid
content. I fix this problem republishing the second web service after
I added the soapActionEntry in my wsdl file. ( I do first contract
development)

Alberto Patino

On 11/30/07, Maicon Stihler <[EMAIL PROTECTED]> wrote:
> Well, even though I use the muse API to craft a notification message,
> I don't use it to invoke the remote service. If I try to send the
> notification message from a command line client it works fine, that's
> why I have a feeling that I'm doing something wrong in the way I call
> the service inside this first service.
>
> I'll make some tests with other kinds of services to make sure that
> the problem isn't with Axis.
>
> thank you
>
> 2007/11/30, Martin Gainty <[EMAIL PROTECTED]>:
> > Hi Maicon
> >
> > This is a muse webapp ..did you contact the muse folks at
> > [EMAIL PROTECTED]
> >
> > ?
> > M--
> > - Original Message -
> > From: "Maicon Stihler" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Friday, November 30, 2007 4:50 PM
> > Subject: Re: [Axis2] Calling a service from another service
> >
> >
> > > 2007/11/30, Martin Gainty <[EMAIL PROTECTED]>:
> > > > Hi Maicon-
> > > >
> > > > 1)can we see the client code.. in particular the part which specifies
> > the
> > > > Action
> > > The code is on the bottom of the email.
> > >
> > > > 2)Is there a reason why the client is not initiating all of the web
> > service
> > > > queries
> > > I want the first service to notify this second service when being
> > > invoked, this action must be transparent to the user because it's not
> > > related to the application logic.
> > >
> > > Best regards,
> > > Maicon
> > >
> > > obs: the code is really ugly, I just started to play with java+soap.
> > >
> > > This is the service that is called by the user, this service then
> > > crafts a notification message and sends it to a second service.
> > >
> > > - code 
> > >
> > > import org.apache.axiom.om.OMAbstractFactory;
> > > import org.apache.axiom.om.OMElement;
> > > import org.apache.axiom.om.OMFactory;
> > > import org.apache.axiom.om.OMNamespace;
> > > import org.apache.axis2.Constants;
> > > import org.apache.axis2.addressing.EndpointReference;
> > > import org.apache.axis2.client.Options;
> > > import org.apache.axis2.client.ServiceClient;
> > > import org.apache.axis2.util.XMLUtils;
> > >
> > > import org.apache.muse.ws.notification.impl.SimpleNotificationMessage;
> > > import org.apache.muse.ws.notification.NotificationMessage;
> > > import org.apache.muse.util.xml.XmlUtils;
> > > import org.w3c.dom.Element;
> > > import org.apache.axiom.soap.SOAPFault;
> > >
> > >
> > >
> > > import javax.xml.namespace.QName;
> > >
> > > public class PEP {
> > >
> > > private static String PREFIX = "tns";
> > > private static String NAMESPACE_URI =
> > "http://org.stihler.vo/guardian/wsn";;
> > > private static QName TOPIC = new QName(NAMESPACE_URI, "PEP", PREFIX);
> > > private static QName messageName = new QName(NAMESPACE_URI,
> > > "PEPNotification", PREFIX);
> > >
> > > public OMElement invoke(OMElement element) throws Exception {
> > >try {
> > >
> > > element.build();
> > > element.detach();
> > >
> > > OMElement msg = createNotification("This is a simple
> > > Notification Message");
> > >
> > > element.addChild(publish(msg));
> > >
> > > return element;
> > >
> > >   } catch (org.apache.axis2.AxisFault e) {
> > > java.io.BufferedWriter bw =
> > > new java.io.BufferedWriter(new
> > > java.io.FileWriter("/tmp/erros-axis.xml"));
> > > bw.write(e.getMessage());
> > > bw.close();
> > > 

Re: Axis2 Rampart + Sandesha integration problem

2007-12-19 Thread Alberto Patino
I'm trying to do the same thing you want to do but I having a
different message error: (Debug enabled)

[DEBUG] Exit: InMemoryTransaction::enlist
[DEBUG] Enter: InMemoryStorageManager::removeMessageContext, key:
urn:uuid:818835A043FB6125F01198050445672
[DEBUG] Exit: InMemoryStorageManager::removeMessageContext, key:
urn:uuid:818835A043FB6125F01198050445672
[DEBUG] Entry: OutInAxisOperationClient$SyncCallBack::onError,
java.lang.Exception: Sandesha2 sender thread has not received a valid
CreateSequnceResponse
[DEBUG] Exit: OutInAxisOperationClient$SyncCallBack::onError
[DEBUG] Exit: SenderWorker::run

The error is:  "Sandesha2 sender thread has not received a valid
CreateSequnceResponse"

I'm tracking the error in the SenderWorker.java file,
checkForSyncResponses function:


} catch (Exception e) {

String message =
SandeshaMessageHelper.getMessage(SandeshaMessageKeys.noValidSyncResponse);
if (msgCtx != null &&! msgCtx.isServerSide() &&
(Sandesha2Constants.SPEC_2005_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction())

||Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction()))
){
// We have not received a valid createSequnce reponse
for the request we send so we need to terminate the seunce here
return false;
} else {
if (log.isWarnEnabled())
log.warn(message, e);
 }

I'm not sure why the code is looking for ACTION_CREATE_SEQUENCE
instead of ACTION_CREATE_SEQUENCE_RESPONSE!


Any ideas?

( I have read the link in http://wso2.org/library/1027 but I realized
the changes suggested in the article are already incorporated in the
sandesha 1.3 module.xml file)

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



Re: Axis2 Rampart + Sandesha integration problem

2007-12-21 Thread Alberto Patino
Would you verify if you get the same stack trace:

Caused by: java.lang.Exception: Sandesha2 sender thread has not
received a valid CreateSequnceResponse
at 
org.apache.sandesha2.workers.SenderWorker.invokeCallBackObject(SenderWorker.java:757)
at org.apache.sandesha2.workers.SenderWorker.run(SenderWorker.java:339)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:619)

Debugging the client application I am able to see the origin of the
problem, in the file SenderWorker.java, function checkForSyncResponses
line 657, AxisEngine.receive() invocation generate an exception:

if (resenvelope!=null) {
AxisEngine.receive(responseMessageContext);
}

} catch (Exception e) {

String message =
SandeshaMessageHelper.getMessage(SandeshaMessageKeys.noValidSyncResponse);
if (msgCtx != null &&! msgCtx.isServerSide() &&

(Sandesha2Constants.SPEC_2005_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction())
||
Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction()))
){
// We have not received a valid createSequnce reponse
for the request we send so we need to terminate the seunce here
return false;
} else {
if (log.isWarnEnabled())
log.warn(message, e);
}
}

The message is totally confusing me because the content of the
exception is not propagated to the client, this error is originated in
AxisEngine.receive(), checkMustUnderstand invocation line #135:

private static void checkMustUnderstand(MessageContext msgContext)
throws AxisFault {
SOAPEnvelope envelope = msgContext.getEnvelope();
if (envelope.getHeader() == null) {
return;
}

// Get all the headers targeted to us
Iterator headerBlocks = envelope.getHeader().getHeadersToProcess(null);

while (headerBlocks.hasNext()) {
SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) headerBlocks.next();

// if this header block has been processed or mustUnderstand isn't
// turned on then its cool
if (headerBlock.isProcessed() || !headerBlock.getMustUnderstand()) {
continue;
}

// Oops, throw an appropriate MustUnderstand fault!!
QName faultQName =
headerBlock.getVersion().getMustUnderstandFaultCode();
throw new AxisFault(Messages.getMessage("mustunderstandfailed",

headerBlock.getNamespace().getNamespaceURI(),

headerBlock.getLocalName()), faultQName);
}
}

The exception has this message:

Must Understand check failed for header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
: Security

I will try to deploy with early SNAPSHOTS!!!

On Dec 21, 2007 2:22 AM, Sukma Agung Verdianto <[EMAIL PROTECTED]> wrote:
> I've solved my previous problem.
> And now I get the same error like yours.
>
>
>
> On Dec 19, 2007 3:27 PM, Alberto Patino <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I'm trying to do the same thing you want to do but I having a
> > different message error: (Debug enabled)
> >
> > [DEBUG] Exit: InMemoryTransaction::enlist
> > [DEBUG] Enter: InMemoryStorageManager::removeMessageContext, key:
> > urn:uuid:818835A043FB6125F01198050445672
> > [DEBUG] Exit: InMemoryStorageManager::removeMessageContext, key:
> > urn:uuid:818835A043FB6125F01198050445672
> > [DEBUG] Entry: OutInAxisOperationClient$SyncCallBack::onError,
> > java.lang.Exception: Sandesha2 sender thread has not received a valid
> > CreateSequnceResponse
> > [DEBUG] Exit: OutInAxisOperationClient$SyncCallBack::onError
> > [DEBUG] Exit: SenderWorker::run
> >
> > The error is:  "Sandesha2 sender thread has not received a valid
> > CreateSequnceResponse"
> >
> > I'm tracking the error in the SenderWorker.java file,
> > checkForSyncResponses function:
> >
> >
> >} catch (Exception e) {
> >
> >String message =
> > SandeshaMessageHelper.getMessage(SandeshaMessageKeys.noValidSyncResponse);
> >if (msgCtx != null &&! msgCtx.isServerSide () &&
> >
> (Sandesha2Constants.SPEC_2005_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction())
> >
> >
> ||Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CREATE_SEQUENCE.equals(msgCtx.getSoapAction()))
> > ){
> &g

Re: Axis2 Rampart + Sandesha integration problem

2007-12-23 Thread Alberto Patino
Using the latest snapshot for axis2 sandesha y rampart, NOW its
working!!! Please try with snapshosts

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



Re: Axis2 Rampart + Sandesha integration problem

2007-12-24 Thread Alberto Patino
I think it was not a good idea to attach the binary file. :) I'm sorry

If you dont't want to build your own distro ( its very easy but you
need a good internet connection and be patiente) I would upload the
latest snapshots in a public server.

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



Re: NoSuchMethodError when service classes and JiBX data binding classes are located in WEB-INF/classes

2008-01-08 Thread Alberto Patino
What is the application server you are using?

On 1/8/08, Gerry Holly <[EMAIL PROTECTED]> wrote:
> Sorry...the JiBX jars (jibx-bind.jar and jibx-run.jar) come from jibx2wsdl4.
> Followed the instructions at
> http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl.
>
> Gerry
>
> On Jan 8, 2008 3:28 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> >  havent seen that version of JIBX package in at least 3 years
> > Mind if I asked where you acquired the jars?
> > JiBX 1.1.5 is the latest
> > http://sourceforge.net/project/showfiles.php?group_id=69358
> >
> > M--
> >
> > - Original Message -
> > *From:* Gerry Holly <[EMAIL PROTECTED]>
> > *To:* [EMAIL PROTECTED] ; axis-user@ws.apache.org
> > *Sent:* Tuesday, January 08, 2008 6:00 PM
> > *Subject:* NoSuchMethodError when service classes and JiBX data binding
> > classes are located in WEB-INF/classes
> >
> > Hi,
> >
> > I'm getting a NoSuchMethodError when service classes and JiBX data binding
> > classes (com.taw.cca.data.languages.*) are located in WEB-INF/classes.
> > The service classes MUST be there because they are shared with a legacy
> > framework.
> >
> > java.lang.NoSuchMethodError:
> > com.taw.cca.data.languages.DataLanguagesResult.JiBX_binding_marshal_1_0
> > (Lorg/jibx/runtime/impl/MarshallingContext;)V
> > at
> >
> com.taw.cca.data.languages.JiBX_bindingDataLanguagesResult_access.marshal()
> > at org.apache.axis2.jibx.JiBXDataSource.marshal(JiBXDataSource.java
> > :189)
> > at org.apache.axis2.jibx.JiBXDataSource.serialize(JiBXDataSource.java
> > :259)
> > at
> >
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
> > OMSourcedElementImpl.java:583)
> >
> > I've verified the class in question and the method is there.   And I'm
> > pretty sure it's the same ClassLoader that loads all classes.  Maybe
> because
> > the class hasn't been resolved?  I'm just starting to learn about
> > ClassLoaders...
> >
> > Environment:
> >Java 1.5
> >Axis2 1.2
> >JiBX 1.1
> >
> > Gerry
> >
> >
>


-- 
Don't be evil!!!

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



Re: Just a small client sample would really be great !

2008-04-06 Thread Alberto Patino
/**
 *
 */
package com.sample.betdaq;

import java.math.BigDecimal;
import java.rmi.RemoteException;

import org.apache.axis2.AxisFault;

import com.globalbettingexchange.www.externalapi.BaseResponseSequence3;
import com.globalbettingexchange.www.externalapi.EventClassifierType;
import com.globalbettingexchange.www.externalapi.ExternalApiHeader;
import com.globalbettingexchange.www.externalapi.ExternalApiHeaderE;
import com.globalbettingexchange.www.externalapi.ListTopLevelEvents;
import com.globalbettingexchange.www.externalapi.ListTopLevelEventsRequest;
import com.globalbettingexchange.www.externalapi.ListTopLevelEventsResponse;
import com.globalbettingexchange.www.externalapi.ListTopLevelEventsResponseE;

/**
 * @author albertop
 *
 */
public class BetdaqClient {


public final static String epr = "http://api.betdaq.com/v2.0/API.wsdl";;
/**
 * @param args
 */
public static void main(String[] args) {
// TODO Auto-generated method stub


try {
ReadOnlyServiceStub  clientStub = new 
ReadOnlyServiceStub(epr);


ListTopLevelEvents list = new ListTopLevelEvents();


ListTopLevelEventsRequest eventsRequest = null;
list.setListTopLevelEventsRequest(eventsRequest);

ExternalApiHeaderE header = new ExternalApiHeaderE();
ExternalApiHeader apiHeader = new ExternalApiHeader();
String langCode="us-en";
apiHeader.setLanguageCode(langCode);
int theVersion = 1;
BigDecimal version = new BigDecimal(theVersion);
apiHeader.setVersion(version);
String username="test";
apiHeader.setUsername(username);
String password="test";
apiHeader.setPassword(password);
header.setExternalApiHeader(apiHeader);

ListTopLevelEventsResponseE response;

response = clientStub.ListTopLevelEvents(list, header);

ListTopLevelEventsResponse listTopLevelEventsResult =
response.getListTopLevelEventsResult();
BaseResponseSequence3[] baseResponseSequence =
listTopLevelEventsResult.getBaseResponseSequence();
int size = baseResponseSequence.length;
for (int i = 0; i wrote:
> Hi,
>
>  I'm trying to figure out how to write a client application to connect to the
>  Betdaq API (http://api.betdaq.com).
>
>  The WSDL for the web services is here : http://api.betdaq.com/v2.0/API.wsdl
>
>  I downloaded Axis (2.1.3), and launched the wsdl2java.bat script.  I've
>  tried different combinations of options to that command, but basically, I
>  always wind up with 4 files :
>
>  ReadOnlyServiceCallbackHandler.java
>  ReadOnlyServiceStub.java
>  SecureServiceCallbackHandler.java
>  SecureServiceStub.java
>
>  I'm sure that someone with a lot of experience with Axis could write a
>  simple method that would use either of those stubs to make a call to the
>  API.
>
>  Any of Betdaq's methods would be fine...  The ListTopLevelEvents seems
>  simple enough...
>
>  Once I've seen a sample, I'm sure I'll be fine...  I just need some help to
>  start.
>
>  Thanks.
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Don't be evil!!!

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



Re: Just a small client sample would really be great !

2008-04-07 Thread Alberto Patino
I used Axis2-Snapshot newer release instead of axis2 1-3

I noticed this new axis2 release changed the naming convention of the
generated code. If you look in the classes generated you will see the
name of the class with a numeric suffix, for example you need lok for
something like ExternalApiHeade99 instead of ExternalApiHeaderE .

Also fix in the sample the path to the endpoint reference (epr)

On Mon, Apr 7, 2008 at 10:37 AM, Jacques46 <[EMAIL PROTECTED]> wrote:
>
>
>  alpatino2 wrote:
>  >
>  > /**
>  >  *
>  >  */
>  > package com.sample.betdaq;
>  >
>  > import java.math.BigDecimal;
>  > import java.rmi.RemoteException;
>  >
>  > import org.apache.axis2.AxisFault;
>  >
>  > import com.globalbettingexchange.www.externalapi.BaseResponseSequence3;
>  > import com.globalbettingexchange.www.externalapi.EventClassifierType;
>  > import com.globalbettingexchange.www.externalapi.ExternalApiHeader;
>  > import com.globalbettingexchange.www.externalapi.ExternalApiHeaderE;
>  > import com.globalbettingexchange.www.externalapi.ListTopLevelEvents;
>  > import
>  > com.globalbettingexchange.www.externalapi.ListTopLevelEventsRequest;
>  > import
>  > com.globalbettingexchange.www.externalapi.ListTopLevelEventsResponse;
>  > import
>  > com.globalbettingexchange.www.externalapi.ListTopLevelEventsResponseE;
>  >
>  > ...
>  >
>
>  Forget my last comment about pretty printing errors, I've solved it with the
>  "-u" option to wsdl2java...
>
>  The output of wsdl2java was 197 classes.  Good stuff.
>
>  The only thing that doesn't work now is the fact that these two classes were
>  NOT generated by wsdl2java, and thus cannot be imported in the test file :
>
>
>  import com.globalbettingexchange.www.externalapi.ExternalApiHeaderE;
>  import
>  com.globalbettingexchange.www.externalapi.ListTopLevelEventsResponseE;
>
>  I'm sure this is an easy problem to fix ?
>  --
>  View this message in context: 
> http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16537516.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]
>
>



-- 
Don't be evil!!!

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



Re: Just a small client sample would really be great !

2008-04-08 Thread Alberto Patino
It's good you could fix your problem

Now, garbage in garbage out... the values I set in the source code
were ficticius, I don't know what values should be send to the web
service

On Tue, Apr 8, 2008 at 10:03 AM, Jacques46 <[EMAIL PROTECTED]> wrote:
>
>  Turns out I was missing a couple of jars in the classpath.
>
>  I'm now at the point where I know that I'm actually sending requests to the
>  Betdaq server and receiving responses...
>
>  The exception I'm getting now is:
>
>  org.apache.axis2.databinding.ADBException: Unexpected subelement
>  ListTopLevelEventsResult
>
>  If I turn on HTTP traffic logging, I can now see that I'm getting an
>  "IncorrectVersionNumber" error back from Betdaq.
>
>  Looking at the original code that you gave me, I saw that you were setting
>  "theVersion" to 1.  I tried setting it to 2, but it didn't help.
>
>  Looking at the logs, it seems that all the header attributes that the code
>  is supposedly setting is not used at all in the SOAP message.  Here's my log
>  :
>
>  2008/04/08 10:57:29:499 EDT [DEBUG] HttpConnection - Open connection to
>  api.betdaq.com:80
>  2008/04/08 10:57:29:639 EDT [DEBUG] header - >> "POST
>  /v2.0/ReadOnlyService.asmx HTTP/1.1[\r][\n]"
>  2008/04/08 10:57:29:655 EDT [DEBUG] HttpMethodBase - Adding Host request
>  header
>  2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "Content-Type: text/xml;
>  charset=UTF-8[\r][\n]"
>  2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "SOAPAction:
>  
> "http://www.GlobalBettingExchange.com/ExternalAPI/ListTopLevelEvents"[\r][\n]";
>  2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "User-Agent: Axis2[\r][\n]"
>  2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "Host:
>  api.betdaq.com[\r][\n]"
>  2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "Transfer-Encoding:
>  chunked[\r][\n]"
>  2008/04/08 10:57:29:671 EDT [DEBUG] header - >> "[\r][\n]"
>  2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "18d[\r][\n]"
>  2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "  encoding='UTF-8'?>  
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>  xmlns:ns1="http://www.GlobalBettingExchange.com/ExternalAPI/";
>  soapenv:mustUnderstand="0"
>  />  xmlns:ns1="http://www.GlobalBettingExchange.com/ExternalAPI/";
>  />"
>  2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "[\r][\n]"
>  2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "0"
>  2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "[\r][\n]"
>  2008/04/08 10:57:29:702 EDT [DEBUG] content - >> "[\r][\n]"
>  2008/04/08 10:57:29:702 EDT [DEBUG] EntityEnclosingMethod - Request body
>  sent
>  2008/04/08 10:57:29:827 EDT [DEBUG] header - << "HTTP/1.1 100
>  Continue[\r][\n]"
>  2008/04/08 10:57:29:827 EDT [INFO] HttpMethodBase - Discarding unexpected
>  response: HTTP/1.1 100 Continue
>  2008/04/08 10:57:29:827 EDT [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]"
>  2008/04/08 10:57:29:827 EDT [DEBUG] header - << "Date: Tue, 08 Apr 2008
>  14:57:29 GMT[\r][\n]"
>  2008/04/08 10:57:29:827 EDT [DEBUG] header - << "Server:
>  Microsoft-IIS/6.0[\r][\n]"
>  2008/04/08 10:57:29:842 EDT [DEBUG] header - << "X-Powered-By:
>  ASP.NET[\r][\n]"
>  2008/04/08 10:57:29:842 EDT [DEBUG] header - << "X-AspNet-Version:
>  2.0.50727[\r][\n]"
>  2008/04/08 10:57:29:842 EDT [DEBUG] header - << "Cache-Control: private,
>  max-age=0[\r][\n]"
>  2008/04/08 10:57:29:842 EDT [DEBUG] header - << "Content-Type: text/xml;
>  charset=utf-8[\r][\n]"
>  2008/04/08 10:57:29:842 EDT [DEBUG] header - << "Content-Length:
>  1394[\r][\n]"
>  2008/04/08 10:57:29:842 EDT [DEBUG] content - << "  2008/04/08 10:57:29:858 EDT [DEBUG] content - << "l version="1.0"
>  encoding="utf-8"?>  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing";
>  
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
>  
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>http://www.GlobalBettingExchange.com/ExternalAPI/ListTopLevelEventsResponseuuid:0daeb813-d09f-4e2b-a8ae-83f37b971bfbuuid:813f4579-17fe-460b-a47e-1c18dca0e5b6http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous  
> wsu:Id="Timestamp-ea4eed52-4bef-411d-9971-559f3e572e19">2008-04-08T14:57:29Z2008-04-08T15:02:29Z  
> xmlns="http://www.GlobalBettingExchange.com/ExternalAPI/";>  Code="308" Description="IncorrectVersionNumber"
>  CallId="c9fe82ee-1cb4-4f68-a52c-0b9863758e29"
>  
> />2008-04-08T15:57:29.6608494+01:00"
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16559668.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: Just a small client sample would really be great !

2008-04-09 Thread Alberto Patino
On Tue, Apr 8, 2008 at 2:03 PM, Jacques46 <[EMAIL PROTECTED]> wrote:
>
>  Thanks for still being here Alberto :-)
>
>  Even though you provided fictitious data for the sample code, that
>  fictitious data should be included in the resulting SOAP request, but it is
>  not, and I can't figure out why (and am hoping you can point me in the right
>  direction).  Here's the SOAP request I end up with :
>
>
>  
>  http://schemas.xmlsoap.org/soap/envelope/";>
>   
> xmlns:ns1="http://www.GlobalBettingExchange.com/ExternalAPI/";
>  soapenv:mustUnderstand="0" />
>   
>   
> xmlns:ns1="http://www.GlobalBettingExchange.com/ExternalAPI/";>
>
>   
>   
>  
>
>  The specs say that all requests should be accompanied by the header, which
>  includes the version number (which is 2 by the way), and that explains why I
>  get the IncorrectVersionNumber error, which triggers my exception...
>
>
>
>  alpatino2 wrote:
>  >
>  > It's good you could fix your problem
>  >
>  > Now, garbage in garbage out... the values I set in the source code
>  > were ficticius, I don't know what values should be send to the web
>  > service
>  >
>  > On Tue, Apr 8, 2008 at 10:03 AM, Jacques46 <[EMAIL PROTECTED]>
>  > wrote:
>  > ...
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16570577.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]
>
>

I got you, I've reproduced the problem let me try to figure out whats wrong.

-- 
Don't be evil!!!

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



Re: Just a small client sample would really be great !

2008-04-09 Thread Alberto Patino
I noticed a different behavior using axis2-SNAPSHOT, let me show you a
wireshark tcpdump, you can download it here:
http://www.4shared.com/file/43614007/1e675e4b/soaprequest.html

As you can see the soap body is empty but the info is inside de SOAP
Header, could you try to run the program with the SANPSHOT version?

Also please update your source code with the right class names,
because you know the newest axis2 version uses a new naming schema.

Here is the sample code I tried:
http://www.4shared.com/file/43614271/bbc1b9d7/BetdaqClient.html

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



Re: Just a small client sample would really be great !

2008-04-10 Thread Alberto Patino
I downloaded the  yesterday snapshot as you and I only had to update
the client code modifying the BaseResponseSequence3 class to
BaseResponseSequence6 and its working...

Clean all your project and start from the beginning



On Thu, Apr 10, 2008 at 8:23 AM, Jacques46 <[EMAIL PROTECTED]> wrote:
>
>  This is getting really frustrating...  >-(
>
>  I downloaded the snapshot distribution from here (by the way it was the
>  april 10 version):
>
>  http://people.apache.org/dist/axis2/nightly/distribution-SNAPSHOT-bin.zip
>  http://people.apache.org/dist/axis2/nightly/distribution-SNAPSHOT-bin.zip
>
>  I dropped it to a folder on my drive.
>
>  I updated my AXIS2_HOME environment variable to point to that folder.
>
>  Opened a DOS prompt, went to the folder's bin sub-folder, and typed :
>
>  wsdl2java -u -uri http://api.betdaq.com/v2.0/API.wsdl
>
>  This created a "src" sub-tree.  In
>  \src\com\globalbettingexchange\www\externalapi, I found all the generated
>  classes.  I copied the \com folder to my Eclipse project.
>
>  I then copied all the jars from the \lib sub-folder of the distribution to
>  my project's lib directory, and updated the build path in the project
>  properties to include those jars.
>
>  Tried compiling : came up with a bunch of errors.
>
>  The first one says :
>
> [javac]
>  ...\com\globalbettingexchange\www\externalapi\ReadOnlyServiceStub.java:413:
>  cannot find symbol
> [javac] symbol  : method
>  
> receiveResultGetPrices(com.globalbettingexchange.www.externalapi.GetPricesResponseE)
> [javac] location: class
>  com.globalbettingexchange.www.externalapi.ReadOnlyServiceCallbackHandler
> [javac] callback.receiveResultGetPrices(
>
>  Sure enough, this receiveResultGetPrices method is nowhere to be found in
>  any of the source files generated by wsdl2java.
>
>  Could it be that the snapshot of April 10th has a bug ?
>
>
>
>
>
>  alpatino2 wrote:
>  >
>  > I noticed a different behavior using axis2-SNAPSHOT, let me show you a
>  > wireshark tcpdump, you can download it here:
>  > http://www.4shared.com/file/43614007/1e675e4b/soaprequest.html
>  >
>  > As you can see the soap body is empty but the info is inside de SOAP
>  > Header, could you try to run the program with the SANPSHOT version?
>  >
>  > Also please update your source code with the right class names,
>  > because you know the newest axis2 version uses a new naming schema.
>  >
>  > Here is the sample code I tried:
>  > http://www.4shared.com/file/43614271/bbc1b9d7/BetdaqClient.html
>  >
>
> > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16608590.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]
>
>



-- 
Don't be evil!!!

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



Re: Just a small client sample would really be great !

2008-04-11 Thread Alberto Patino
On Fri, Apr 11, 2008 at 10:39 AM, Jacques46 <[EMAIL PROTECTED]> wrote:
>
>  By the way, I was wondering on which platform you generated the Java files ?
>
Linux, is there another operating system? ;-)



>  I'm asking because I was using Windows, but decided to try Linux (Fedora),
>  with the same Snapshot distribution, and I got a bunch of warnings and
>  exceptions...

Nice decision, I uploaded my project here:

http://www.4shared.com/file/43790367/3e3548a7/betdaqtar.html

It would be fine if you can understand the structure of the project
and use the build.xml for future projects. Also you can import the
same project to eclipse:

Please read the README file inside the sample, the build.xml is not
tested but you can give you an idea to customize it to your needs.

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



Re: .properties file location in axis2

2008-04-17 Thread Alberto Patino
If you have:

{AXIS2-APP-SERVER-PATH}/WEB-INF/sample.properties

Then write something like:

Class MyService extends MyServiceSkeleton {

Properties properties = new Properties();


public initProperties() {

  
properties.load(MyService.class.getResourceAsStream(/WEB-INF/sample.properties)

}




On Thu, Apr 17, 2008 at 1:51 PM, Chris Richmond
<[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hey all,
>
>
>
> Where do I place a standard java .properties file in my axis2 web service
> folder structure if I want to be able to read it in standard java fashion.
>
>
>
> I have tried several locations and cannot figure out where it should go to
> use a .properties file with my web service
>
>
>
> Thanks,
>
> Chris



-- 
Don't be evil!!!

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



Re: problem: could not read log4j.properties file

2008-05-10 Thread Alberto Patino
This is from the archive...

If you have:

{AXIS2-APP-SERVER-PATH}/WEB-INF/sample.properties

Then write something like:

Class MyService extends MyServiceSkeleton {

Properties properties = new Properties();


public initProperties() {

 
properties.load(MyService.class.getResourceAsStream(/WEB-INF/sample.properties)

On Sat, May 10, 2008 at 7:27 AM, neha sood <[EMAIL PROTECTED]> wrote:
> i have chkd file permissions . Actly that  file is present in config folder
> as i told earlier.In WEB-INF folder there is no folder called classes is
> present.i have created on my own and copied that log4j.properties file into
> that but it didn't work. what else can i try..
>
>
> On Thu, May 8, 2008 at 7:05 AM, Michael Bauer <[EMAIL PROTECTED]> wrote:
>>
>> Check the file permissions.  That has bit me more than once on JBoss.
>>  Make sure the user running the JBoss process can read the file.
>>
>> On May 7, 2008, at 10:11 AM, neha sood wrote:
>>
>> hi
>> i have log4j.properties file but it is not being read..i have that file in
>> config directory of my project.i have copied it into
>> project/webapp/WEBINF/but here no classes folder was present ..so i
>> created one and copied into dat since...in all projects it is available
>> there..
>> still its not workin...
>> thanx for reply
>> cheers
>> neha
>>
>>
>> On Wed, May 7, 2008 at 6:21 PM, Michael Bauer <[EMAIL PROTECTED]> wrote:
>>>
>>> You need a log4j.properties file, else loging doesn't work.  You should
>>> be able to find a decent example of one on the web.
>>>
>>>
>>> On May 7, 2008, at 7:28 AM, neha sood wrote:
>>>
 hi
  i m getting the folloewing error..
  log4j:ERROR Could not read configuration file
 [/usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties].
  [createdb] java.io.FileNotFoundException:
 /usr/local/apache-tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such
 file or directory)
  [createdb] at java.io.FileInputStream.open(Native Method)
  [createdb] at
 java.io.FileInputStream.(FileInputStream.java:106)
  [createdb] at
 java.io.FileInputStream.(FileInputStream.java:66)
  [createdb] at
 org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297)
  [createdb] at
 org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
  [createdb] at
 org.gridlab.gridsphere.portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33)
  [createdb] at
 org.gridlab.gridsphere.core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71)
  [createdb] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  [createdb] at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [createdb] at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [createdb] at java.lang.reflect.Method.invoke(Method.java:585)
  [createdb] at
 org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:939)
  [createdb] at
 org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:393)
  [createdb] at
 org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370)
  [createdb] at
 org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)
 .
 what can be the reason..as it says file or dir doesnt exsit there..how
 can i resolve this error

 --
 Friends are flowers in the garden of life
>>>
>>> Michael Bauer
>>> [EMAIL PROTECTED]
>>> http://www.codechimp.net
>>>
>>>
>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>>
>> --
>> Friends are flowers in the garden of life
>>
>> Michael Bauer
>> [EMAIL PROTECTED]
>> http://www.codechimp.net
>>
>>
>>
>>
>
>
>
> --
> Friends are flowers in the garden of life



-- 
Don't be evil!!!

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



Re: rpc-encoded vs rpc-literal vs document-literal migrate Axis1.4 wsdl (rpc-encoded) to Axis2 doc-lit

2007-08-07 Thread Alberto Patino
OK, I got the point. Thats exactly the the way the ESB would decouple
the axis2 document/literal service from the axis1 rpc/encoded. I only
see an inconvenient: I'll require an axis1 engine resident in its own
servlet container, could it be the same servlet container that holds
the axis2 engine? Would it be a good practice?

Thanks



On 7/30/07, Walker, Jeff <[EMAIL PROTECTED]> wrote:
> I wouldn't try mixing Axis2 with Axis1 libraries in the same deployment.
> Sounds like a recipe for disaster.
> I'd recommend a Composite web service design.
> The first web service is Axis2-based and that is exposed to the Client.
> This uses SOAP 1.2, WSDL 2.0 and doc/lit for comms (whatever latest and
> greatest specs you want, really). That Axis2 service is a client of a
> 2nd service, which is Axis1 based (it is a totally separate deployment).
> This uses SOAP 1.1, WSDL 1.1 and doc/lit for comms between the two
> services.
> That Axis1 service is a client of the final RPCEncodedService, comms
> between these two is SOAP 1.1, WSDL 1.1 and rpc/encoded.
> -jeff
>
>
> -Original Message-
> From: alpatino2 [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 30, 2007 11:17 AM
> To: axis-user@ws.apache.org
> Subject: Re: rpc-encoded vs rpc-literal vs document-literal migrate
> Axis1.4 wsdl (rpc-encoded) to Axis2 doc-lit
>
>
> Thanks for the help, I see the necessity to use axis1, now what do you
> think
> is the best way to invoke this rpc/encoded service, I want to write a
> higher
> level service in axis2 using document/literal style, and inside of this
> service  invoke to the rpc service, but I think I need to mix axis1 and
> axis2 libraries,  I know I could decouple service invokation using a
> ESB,
> but I cannot afford to use this.
>
> Client--->Axis2 (Doc Literal)Service --> rpc/encoded
> __ |--> doc/literal
> __ |--> 
>
> Thanks again
>
>
> Use Axis 1.4 instead.
>
> Anne
>
> On 7/30/07, Philipp Leitner <[EMAIL PROTECTED]> wrote:
> > AFAIK Axis 2 does not support RPC/encoded at all since it is  not WS-I
> > compliant.
> >
> > /philipp
> >
> > alpatino2 schrieb:
> > > Hi!
> > >
> > > I have a slightly different requirement: I received wsdl's from a
> > service
> > > provider that implements the TR-069 spec, this spec define the use
> of
> > > rpc/encoded style. I need to invoke this service but I am not able
> to
> > > generate the client, I tried to generate the client for the sample
> > > stockAvailableNotification.wsdl extracted from the Building Web
> Services
> > > with Java book, but I get the following error:
> > >
>
> --
> View this message in context:
> http://www.nabble.com/rpc-encoded-vs-rpc-literal-vs-document-literal-mig
> rate-Axis1.4-wsdl-%28rpc-encoded%29-to-Axis2-doc-lit-tf4113634.html#a118
> 65674
> 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]
>
>


-- 
Don't be evil!!!

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



How to build axis2 from the sources

2007-08-07 Thread Alberto Patino
Hi Guys!

I have a lot of problems trying to build axis2 from the sources,
basically the info in the axis2 home page is outdated and more than
help is a little bit confusing, so I wrote a mini guide here:

http://knowledgefrontier.blogspot.com/2007/07/howto-contribute-code-to-axis2-project.html


-- 
Don't be evil!!!

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



How to debug axis2 engine.

2007-08-07 Thread Alberto Patino
Hi again!

I'm very interested in understand how the axis2 engine works under the
hood, I wrote this mini guide to help newbies like me to encourage
them to start to get dirty with the code:

http://knowledgefrontier.blogspot.com/2007/07/how-to-debug-axis2-engine.html

I have many many questions but this is a good point to start.

Thanks

-- 
Don't be evil!!!

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



Re: How to build axis2 from the sources

2007-08-07 Thread Alberto Patino
That's great I was struggling for a week following the instructions
from the axis2 home page:

http://ws.apache.org/axis2/faq.html and http://ws.apache.org/axis2/svn.html

There it says that the build doesn't support maven 2, So I believed
with the heart that but I never could generate the distro with maven
1!

Thanks

On 8/7/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> Thanks Alberto!!!. We will be updating the build process in the online
> doc when we cut the 1.3 release.
>
> -- dims
>
> On 8/8/07, Alberto Patino <[EMAIL PROTECTED]> wrote:
> > Hi Guys!
> >
> > I have a lot of problems trying to build axis2 from the sources,
> > basically the info in the axis2 home page is outdated and more than
> > help is a little bit confusing, so I wrote a mini guide here:
> >
> > http://knowledgefrontier.blogspot.com/2007/07/howto-contribute-code-to-axis2-project.html
> >
> >
> > --
> > Don't be evil!!!
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Don't be evil!!!

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



[RAMPART] Unable to load rampart-1.2-mar in Axis2-1.3

2007-08-13 Thread Alberto Patino
Hello!

I'm trying to run the Rampart 1.2 samples with Axis3 but I got a
service deployment error, if I run the samples with Axis 1.2 there is
no problem.

Also, I tried to download rampart-1.3 module but the link is broken



INFO: Deploying web application archive axis2.war
[INFO] Deploying module: addressing-1.3
[INFO] Deploying module: script-1.3
[INFO] Deploying module: ping-1.3
[INFO] Deploying module: soapmonitor-1.3
[INFO] Deploying module: metadataExchange-1.3
[INFO] script module activated
[INFO] Deploying Web service: version-1.3.aar
Aug 13, 2007 4:46:59 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 13, 2007 4:46:59 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 13, 2007 4:46:59 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/234  config=null
Aug 13, 2007 4:46:59 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 13, 2007 4:46:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6984 ms
org.apache.axis2.deployment.DeploymentException: The rampart module is
not valid or has not been deployed.
 at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:144)
at 
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)
at 
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:312)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71)
at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:83)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)


Do I need to wait for the rampart 1.3 release?


Thanks

-- 
Don't be evil!!!

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



[RAMPART] Which is the official rampart home page?

2007-08-14 Thread Alberto Patino
Hi guys!

I'm trying to download RAMPART module 1.3 RC1 to run samples with
Axis2-1.3 as suggested by Ruchith , but I'm stuck trying to find the
RC1 version

I think the page:

http://ws.apache.org/rampart/

is the official one, but I don't see the link in the main page of apache,

On the other hand I found the RC1 version in the Ruchith blog:

http://ruchith.blogspot.com/2007/08/apache-rampart-13-rc1-is-available.html

And lastly, rampart info is found under the modules section from the axis2 page:

http://ws.apache.org/axis2/modules/rampart/1_3/security-module.html

Could it be possible to gather all the
Rampart related information into the http://ws.apache.org/rampart page?

Thanks a lot

-- 
Don't be evil!!!

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



Re: [RAMPART] Which is the official rampart home page?

2007-08-14 Thread Alberto Patino
Thanks for your answer

Now it's clear for me where is the main page for the rampart project:

http://ws.apache.org/rampart

2 weeks ago I tried to find the address of the mail list for the
rampart project but I was looking in the wrong place: the axis2
project main page, so I couldn't find it


By the way I'm running the RC1 against Axis2-1.3 and all is running
except by minors fixes to the build.xml and client code, and well,
updating the client certificate too

On 8/14/07, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I did send a mail to the rampart-dev list [1] about the RC release :-)
> and apologies about not updating the Rampart site[2].
>
> We should move the axis2 rampart page into the rampart site and link
> to the official site from the axis modules page.
>
> Thanks,
> Ruchith
>
> 1. 
> http://mail-archives.apache.org/mod_mbox/ws-rampart-dev/200708.mbox/raw/[EMAIL
>  PROTECTED]/
> 2. http://ws.apache.org/rampart/
>
> On 8/15/07, Alberto Patino <[EMAIL PROTECTED]> wrote:
> > Hi guys!
> >
> > I'm trying to download RAMPART module 1.3 RC1 to run samples with
> > Axis2-1.3 as suggested by Ruchith , but I'm stuck trying to find the
> > RC1 version
> >
> > I think the page:
> >
> > http://ws.apache.org/rampart/
> >
> > is the official one, but I don't see the link in the main page of apache,
> >
> > On the other hand I found the RC1 version in the Ruchith blog:
> >
> > http://ruchith.blogspot.com/2007/08/apache-rampart-13-rc1-is-available.html
> >
> > And lastly, rampart info is found under the modules section from the axis2 
> > page:
> >
> > http://ws.apache.org/axis2/modules/rampart/1_3/security-module.html
> >
> > Could it be possible to gather all the
> > Rampart related information into the http://ws.apache.org/rampart page?
> >
> > Thanks a lot
> >
> > --
> > Don't be evil!!!
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> www.ruchith.org
> www.wso2.org
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Don't be evil!!!

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



Re: [axis2] [IMPORTANT] JDK 1.4 compatibility - feedback requested

2007-08-14 Thread Alberto Patino
In our project, I strongly recommended the use of axis2, fortunately,
this projects is totally new, the only concern I had was considering
the use of WebSphere,  corporative rules demand the use of WAS as our
corporate Application Server, So I was very clear asting for the 6.1
release but people is reluctant with websphere 6.1 because the main
reason is that they don't have enough expertise with the newest
release, if I were locked with websphere 6.0 or minor I might not use
axis2 with java5 cause Webshere 6.0 depends on java 1.4.

In the other hand if Axis2 were rewritten with java5 in mind, this
would be an excellent excuse to adopt the use of WAS 6.1 or change it
for another Application Server ;-)



On 8/14/07, Glen Daniels <[EMAIL PROTECTED]> wrote:
> Hi Axis2 developers and users!
>
> There has been a bunch of discussion lately revolving around the
> question of JDK1.4 compatibility.  It has been suggested that Axis2 move
> to JDK 1.5, in order to gain the benefits of things like generics,
> built-in concurrency (no backport lib), and annotations.  Some folks
> feel that there are enough people out there still in a 1.4 environment
> that we should hold off, and others think we should bite the bullet and
> move to 1.5.
>
> HERE'S YOUR CHANCE TO PROVIDE VALUABLE INPUT!
>
> Are you using, or planning to use, Axis2 in an environment that is
> locked to JDK 1.4?  If so, please let us know by responding to this
> thread and telling us (if you can) about the particulars of what's tying
> you to 1.4 - is it your app server?  Company policy?  Something else?
>
> We'd really like to take good care of our users, and doing that involves
> figuring out whether we can jump into 1.5-land or if we need to keep
> things working with 1.4.
>
> Thanks,
> --Glen
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Don't be evil!!!

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



Re: Changes in axis client for Mutual Authentication

2007-08-24 Thread Alberto Patino
Believe it, this is true, I did this procedure with axis1, I'
wondering if axis2 use the same mechanism? I hope so.

However, the only problem I had was converting the PEM certificates I
received from my customer into the keystore! Be careful if you receive
a Chain of Certificates in PEM format!

Alberto Patino

On 8/24/07, Ali, Haneef <[EMAIL PROTECTED]> wrote:
> Before accessing the webservice.
>
>   // Set System properties
>   // Instantiate the stub
>   // Call the method
>
>
> Haneef
>
>
> 
>
> From: Deep Chand [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 24, 2007 10:48 AM
> To: Ali, Haneef
> Cc: axis-user@ws.apache.org
> Subject: Re: Changes in axis client for Mutual Authentication
>
>
> So do I need to set the system properties in the client code i.e.
> constructor of stubs generated by wsdl2java or some where in the code
> before accessing the web service. OR do i need to set it at the time of
> using wsdl2java utility. please reply.
>
>
> On 8/24/07, Ali, Haneef <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> You don't need to make any changes. You have done all the
> required
> settings. If you still think it is not working do the following.
>
> 1) Set the property System.setProperty("javax.net.debug",
> "ssl,handshake");
> 2) Look at the debug messages.
> a) First you will  see set of messages relating to JSSE
> reading
> the contents of truststore and keystore
>   b) Then you will set of messages relating to SSL handshake
>
> starting with "ServerHello", "ClientHello" etc
> c) If your server is configured to do client-cert auth(
> 2 way
> ssl) then you will see a request with a header
> "CertificateRequest" followed by set of CA
> names. ( i.e)
> the server is capable of accepting any certificates issued by
> those CAs'
> d) Then you can see set of messages relating to your
> client
> finding appropriate certificate from the keystore and sending it
> to
> server
> e) You can ignore rest of the messages.
>
> Thanks,
> Haneef
>
>
>
>
>
>
> 
>
> From: Deep Chand [mailto:[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> ]
> Sent: Friday, August 24, 2007 8:27 AM
> To: axis-user@ws.apache.org
> Subject: Changes in axis client for Mutual Authentication
>
>
> all gurus,
>
> I have a web service client developed using axis i.e. Ran
> WSDL2Java on
> WSDL
> to generate the client stubs and then filled in the logic to
> access the
> web
> service exposed by soap server. Everything works fine.
>
> I want to add mutual authentication (2 way TLS authentication)
> to this
> existing web service communication. I've the access to client
> and server
> certificates. What changes do I need to make in the client?
>
> What I understand from googling is:
>
> 1) I read that I need to set some system properties like
>
> javax.net.ssl.keyStoreType,
> javax.net.ssl.keyStore,
> javax.net.ssl.keyStorePassword,
> javax.net.ssl.trustStoreType ,
> javax.net.ssl.trustStore
> javax.net.ssl.trustStorePasswo
> rd
>
> 2) Use https instead of http while invoking the web service.
>
> Is that all I need to do or some thing else? Do I need to set
> these
> system
> properties while running the wsdl2java utility or in the client
> code at
> the
> time of invoking the web service. please reply
>
> any help is appreciated.
>
> thanks,
> deep
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Don't be evil!!!

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



Re: Problems with generated WSDL

2007-08-24 Thread Alberto Patino
FwkProcessPtePKe is defined in the schema
"http://domain.wfl.api.core.crm/xsd"; and the later has the complex
type definition below in anothe schema subelement.

I think this is a problem of the BEA parser. Try with SOAPUI tool!

On 8/24/07, Montagut, Carlos <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi all.
>
> I'm using a POJO service with axis1.3 (I tryed with axis1.2 and also axis1.3
> nightly build).
> I let axis to generate the WSDL of the service which use three java
> packages, that generate three diferent schemas in the WSDL.
>
> Everything works fine if I work axis to axis, but... if I try to generate a
> client with a third party tool (let say weblogic client generator), I got an
> schema error "Unable to resolve definition for
> ['http://base.wfl.api.core.crm/xsd']:ns2:FwkWflFunction
> perhaps due to the lack of an import statement for namespace
> http://base.wfl.api.core.crm/xsd";
>
> I tryed to use a WSDL validator and I got also this error. If I add the
> import of the mentioned error to the corresponding schema, everything works
> fine.
>
> Could be possible that axis is having a bug and not including the
> corresponding import ?
>
>
>
> Here is the generated WSDL:
>
> 
>  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> xmlns:ns0="http://ws.wfl.api.core.crm";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:ns1="http://domain.wfl.api.core.crm/xsd";
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> xmlns:ns2="http://base.wfl.api.core.crm/xsd";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> targetNamespace="http://ws.wfl.api.core.crm";>
>
>
> FwkProcessService
> 
> 
>
> http://ws.wfl.api.core.crm";
> attributeFormDefault="qualified"
> elementFormDefault="qualified" targetNamespace="http://ws.wfl.api.core.crm";>
>
> 
> 
> 
>  type="xs:long"/>
>  nillable="true" type="xs:string"/>
>  nillable="true" type="xs:string"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
> 
> 
> 
> 
> 
> 
>  type="xs:long"/>
>  nillable="true" type="ns2:FwkWflFunctionData"/>
>  nillable="true" type="xs:string"/>
>  nillable="true" type="xs:string"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
> 
> 
> 
>  name="prcContinueProcessByFunction">
> 
> 
>  nillable="true" type="ns1:FwkProcessPtePKey"/>
>  nillable="true" type="ns2:FwkWflFunctionData"/>
>  nillable="true" type="xs:string"/>
>  nillable="true" type="xs:string"/>
> 
> 
> 
>  name="prcContinueProcessByFunctionResponse">
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
>  nillable="true" type="ns2:FwkWflFunctionStatusInfo"/>
>  nillable="true" type="xs:string"/>
>  nillable="true" type="xs:string"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
>  nillable="true" type="ns2:FwkWflFunctionStatusInfo"/>
>  nillable="true" type="xs:string"/>
>  nillable="true" type="xs:string"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="ns2:FwkWflFunction"/>
> 
> 
> 
> 
> 
> 
>  nillable="true" type="xs:string"/>
>  nillable="true" type="ns2:FwkWflFunctionData"/>
>  ty