Matt Hoffman

Ranch Hand
+ Follow
since Jun 03, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matt Hoffman

Has anyone figured this out? I want to use JUnit 4 with Jmeter.
12 years ago
I have TPTP setup in Eclipse and want to record a GUI test for a swing java application. Is this possible? The application is launched using the run commend in eclipse. If so, what is the starting point selection when recording a test case.

If this isn't a viable option to record GUI swing apps, what are your suggestion in relation to Open Source automated tools?

Thanks for any info
14 years ago
Can JMeter randomize data from a CSV file? I have it reading the file, but want to randomly select a value from the column.
16 years ago
I have a web service (http://localhost:8080/axis/services/OrdersLookupService?wsdl) that sends a orderID and gets a order as the response. I need to add it to a UDDI registry on my machine. What do I need to do that and are there any tutorials out there to help me?

Thanks
16 years ago
I am using wss4j. Do you have a example on how I would use SAML? Do I just need to add something is the wsdd file?
16 years ago
I need to implement a basic SAML assertion. I can't find anything on the net on how to do this. Can someone direct me on what I need to do? do I need any JARs, etc.?

Thanks
16 years ago
I got it working. When I deployed through eclipse it messed up my server-config.wsdd file. It authenticates my web service. Now I have to figure out how to implement SAML.... Do you know any good resources?
16 years ago
Yeah, I have soap monitor enabled, but when I run my client I don't see anything in the applet.
16 years ago
Ok. I am down to the final steps. I had to complile the PWCallBack class into the WEB-INF/class folder instead of my project folders.

On this site (http://ws.apache.org/wss4j/axis.html), I am at configuring the client step #4. I ran the client_deploy.wsdd using eclipse, but it says
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultSubcode:
faultString: The AXIS engine could not find a target service to invoke! targetService is null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:JSTC1364

The AXIS engine could not find a target service to invoke! targetService is null

I am not sure what I need to do to get it working from here... Any ideas?
16 years ago
The happyaxis page works fine. I did deploy the service and it doesn't show up on that page. I did get my client to return a SOAP message so the service I created works. Now I am getting a error on the PWCallback.java page.

xisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: WSHandler: cannot load password callback class: PWCallback; nested exception is:
java.lang.ClassNotFoundException: PWCallback; nested exception is:
org.apache.ws.security.WSSecurityException: WSHandler: cannot load password callback class: PWCallback; nested exception is:
java.lang.ClassNotFoundException: PWCallback
faultActor:
faultNode:
faultDetail:

WSHandler: cannot load password callback class: PWCallback; nested exception is:
java.lang.ClassNotFoundException: PWCallback; nested exception is:
org.apache.ws.security.WSSecurityException: WSHandler: cannot load password callback class: PWCallback; nested exception is:
java.lang.ClassNotFoundException: PWCallback
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at orders.orderWS.service.Client1.main(Client1.java:14)
Exception in thread "main"

Any ideas?
16 years ago
Thanks. That seems to fix the problem, but when I redeploy and go to Axis nothing shows up. I clicked on List in Axis and all I see is "And now... Some Services" with nothing after it. Here is my deploy code: Thanks for any help...

<service name="OrdersLookupService" provider="java:RPC">
<requestFlow>
<handler type="java rg.apache.ws.axis.security.WSDoAllReceiver">
<parameter name="passwordCallbackClass" value="PWCallback"/>
<parameter name="action" value="UsernameToken"/>
</handler>
</requestFlow>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="orders.orderWS.service.OrderLookupService"/>
</service>
16 years ago
I need to implement basic security on my web service. I basically went through this tutorial http://ws.apache.org/wss4j/axis.html and when I deploy the service, I get a error:

Exception - org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: org.apache.ws.axis.security.WSDoAllReceiver
java.lang.ClassNotFoundException: org.apache.ws.axis.security.WSDoAllReceiver


I have the wss4j.jar in the web-inf/lib in the class path in eclipse. I also have the xmlsec.jar in there also. Is there something I am missing?

Thanks
16 years ago
Here is the messge I sent to WS-I...

I am pretty new to web services and Java. I have a web service build through axis and want to monitor it through WS-I. My web service is at http://localhost:8080/axis/services/OrderLookupService on my machine. Do I just use the monitorConfig.xml in the sample folder? Do I need to move it out of the folder? In the monitorConfig.xml file it has
<wsi-monConfig:redirect>
<wsi-monConfig:comment>This is a redirect example for local Retailer Sample App on port 8080.</wsi-monConfig:comment>
<wsi-monConfig:listenPort>80</wsi-monConfig:listenPort>
<wsi-monConfig:schemeAndHostPort>http://localhost:8080</wsi-monConfig:schemeAndHostPort>;
<wsi-monConfig:maxConnections>1000</wsi-monConfig:maxConnections>
<wsi-monConfig:readTimeoutSeconds>15</wsi-monConfig:readTimeoutSeconds>
</wsi-monConfig:redirect>

This seems to be ok, but do I need to change this for my webservice? I am running a client and getting the following SOAP, so I know it is working.

SOAP REQUEST:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getInvoiceNumber soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><arg0 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2</arg0></getInvoiceNumber></soapenv:Body></soapenv:Envelope>

SOAP RESPONSE:
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getInvoiceNumberResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><getInvoiceNumberReturn xsi:type="xsd:int">13</getInvoiceNumberReturn></getInvoiceNumberResponse></soapenv:Body></soapenv:Envelope>
13


Thanks for any help on this.
16 years ago
These can be downloaded. I have them on my machine. I just can't figure out how to run monitoring tools on my web service.
16 years ago
Well the WS-I seems to be solid standards for WSDL and Web Services implementation. Here is a link to their website.
http://www.ws-i.org/deliverables/workinggroup.aspx?wg=testingtools

I am just checking to see if anyone has used the tools with their web services.

Thanks
16 years ago