I'm using Netbeans to test my WebService, and each time it sends the request, my endpoint receives NaNs for its XPathParams. I'm not sure if I'm not doing the XPathParam properly or what, but it seems pretty straight forward.
Here's the SOAP request from Netbeans:
Here's my EndPoint:Code:<?xml version="1.0" ?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns1:getCatalogPageRequest xmlns:ns1="http://www.12gaugemedia.com/shotgun-ws/services/catalog"> <ns1:siteId>0</ns1:siteId> <ns1:folderId>0</ns1:folderId> <ns1:page>0</ns1:page> <ns1:resultsPerPage>0</ns1:resultsPerPage> </ns1:getCatalogPageRequest> </S:Body> </S:Envelope>
I've tried "//ns1:siteId" and "//tns:siteId" (since my xsd has the namespace "xmlns:tns" defined), however, they all return NaN.Code:@PayloadRoot(localPart = GET_CATALOG_PAGE_REQUEST, namespace = NAMESPACE_URI) public Source getCatalogPageRequest(@XPathParam("//siteId") double siteId, @XPathParam("//folderId") double folderId, @XPathParam("//page") double page, @XPathParam("//resultsPerPage") double resultsPerPage){ ...
Any ideas why I'd be getting NaN for all values of this request? Thanks!


Reply With Quote