[eluser]hamiltonian[/eluser]
My request looks like:
Quote:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1843="http://l01ra25e:8080/ESP/">
<SOAP-ENV:Body>
<getTLResponseSet >
<RequestSetTL >
<declaredValue >0</declaredValue>
<deliveryDay >0</deliveryDay>
<deliveryMonth >0</deliveryMonth>
<deliveryYear >0</deliveryYear>
<destCity >ATLANTA</destCity>
<destCountry >USA</destCountry>
<destState >GA</destState>
<destStateCity >GAATL</destStateCity>
<destZIP >30301</destZIP>
<hazmat >false</hazmat>
<miles >900</miles>
<origCity >CHICAGO</origCity>
<origCountry >USA</origCountry>
<origState >IL</origState>
<origStateCity >ILCHI</origStateCity>
<origZIP >60661</origZIP>
<pickupDay >22</pickupDay>
<pickupMonth >7</pickupMonth>
<pickupYear >2008</pickupYear>
<truckTransitDays >2</truckTransitDays>
<weight >0</weight>
</RequestSetTL>
</getTLResponseSet>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
and my response looks like:
Quote:<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
<faultcode>ns2:Server</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>\
<detail>
<ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" class="java.lang.NullPointerException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
<ns2
tackTrace>
<ns2:frame class="com.sun.xml.ws.util.QNameMap" file="QNameMap.java" line="476" method="getEntry"/>
<ns2:frame class="com.sun.xml.ws.util.QNameMap" file="QNameMap.java" line="149" method="get"/>
<ns2:frame class="com.sun.xml.ws.server.sei.PayloadQNameBasedDispatcher" file="PayloadQNameBasedDispatcher.java" line="127" method="getEndpointMethodHandler"/>
<ns2:frame class="com.sun.xml.ws.server.sei.SEIInvokerTube" file="SEIInvokerTube.java" line="88" method="processRequest"/>
<ns2:frame class="com.sun.xml.ws.server.WSEndpointImpl$2" file="WSEndpointImpl.java" line="243" method="process"/>
<ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit" file="HttpAdapter.java" line="444" method="handle"/>
<ns2:frame class="com.sun.xml.ws.transport.http.HttpAdapter" file="HttpAdapter.java" line="244" method="handle"/>
<ns2:frame class="com.sun.xml.ws.transport.http.server.WSHttpHandler" file="WSHttpHandler.java" line="106" method="handleExchange"/>
<ns2:frame class="com.sun.xml.ws.transport.http.server.WSHttpHandler" file="WSHttpHandler.java" line="91" method="handle"/>
<ns2:frame class="com.sun.net.httpserver.Filter$Chain" file="Filter.java" line="65" method="doFilter"/>
<ns2:frame class="sun.net.httpserver.AuthFilter" file="AuthFilter.java" line="65" method="doFilter"/>
<ns2:frame class="com.sun.net.httpserver.Filter$Chain" file="Filter.java" line="68" method="doFilter"/>
<ns2:frame class="sun.net.httpserver.ServerImpl$Exchange$LinkHandler" file="ServerImpl.java" line="575" method="handle"/>
<ns2:frame class="com.sun.net.httpserver.Filter$Chain" file="Filter.java" line="65" method="doFilter"/>
<ns2:frame class="sun.net.httpserver.ServerImpl$Exchange" file="ServerImpl.java" line="547" method="run"/>
<ns2:frame class="java.util.concurrent.ThreadPoolExecutor$Worker" file="ThreadPoolExecutor.java" line="650" method="runTask"/>
<ns2:frame class="java.util.concurrent.ThreadPoolExecutor$Worker" file="ThreadPoolExecutor.java" line="675" method="run"/>
<ns2:frame class="java.lang.Thread" file="Thread.java" line="595" method="run"/>
</ns2
tackTrace>
</ns2:exception>
</detail>
</ns2:Fault>
</S:Body>
</S:Envelope>
Some response has been left out to not exceed maximum post length.
I notice that getTLResponseSet RequestSetTL do not have the namespaces in the request. How can I set these? I pass the namespace in the client->call() function. Is the NullPointerException thrown from jax-ws? And would disabeling com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace help? If so, where do I set this to false?
I would appreciate any help - this thing is driving me crazy!