API Call to Find DistributionList returns error

Forum for users and developers of Bullhorn's Webservices API suite

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
jbryan2
User
Posts: 3
Joined: Thu Jun 27, 2013 11:16 am

API Call to Find DistributionList returns error

Post by jbryan2 » Thu Jun 27, 2013 11:24 am

Hello,

I am able to make a successful call using the code below to get Distribution List ID 615:

Code: Select all

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:apis="http://apiservice.bullhorn.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <apis:find>
         <!--Optional:-->
         <session>***Session ID***</session>
         <!--Optional:-->
         <entityName>DistributionList</entityName>
         <!--Optional:-->
         <id xsi:type="xs:int">615</id>
      </apis:find>
   </soapenv:Body>
</soapenv:Envelope>
I receive the response:

Code: Select all

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:findResponse xmlns:ns2="http://apiservice.bullhorn.com/">
         <return>
            <session>***Session ID***</session>
            <dto xsi:type="ns4:distributionListDto" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://distlist.entity.bullhorn.com/">
               <dateAdded>2013-01-18T15:13:50.637-05:00</dateAdded>
               <description/>
               <distributionListID>615</distributionListID>
               <groupName/>
               <isPrivate>true</isPrivate>
               <isReadOnly>false</isReadOnly>
               <name>Webinar Import Notification - Sales</name>
               <ownerID>99795</ownerID>
               <searchURL/>
               <type>Internal</type>
            </dto>
         </return>
      </ns2:findResponse>
   </S:Body>
</S:Envelope>
But the problem is that if I make that same call using DistibutionList ID 660, I receive the following SOAP Response

Code: Select all

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
         <faultcode>S:Server</faultcode>
         <faultstring>javax.xml.soap.SOAPException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[20,32]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?id&xsi:type&xsi</faultstring>
         <detail>
            <ns2:exception class="javax.xml.ws.WebServiceException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" xmlns:ns2="http://jax-ws.dev.java.net/">
               <message>javax.xml.soap.SOAPException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[20,32]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?id&xsi:type&xsi</message>
               <ns2:stackTrace>
                  <ns2:frame class="com.sun.xml.ws.handler.SOAPMessageContextImpl" file="SOAPMessageContextImpl.java" line="81" method="getMessage"/>
                  <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="42" method="handleInbound"/>
                  <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="33" method="handleMessage"/>
                  <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="18" method="handleMessage"/>
                  <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="292" method="callHandleMessage"/>
                  <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="135" method="callHandlersRequest"/>
                  <ns2:frame class="com.sun.xml.ws.handler.ServerSOAPHandlerTube" file="ServerSOAPHandlerTube.java" line="134" method="callHandlersOnRequest"/>
                  <ns2:frame class="com.sun.xml.ws.handler.HandlerTube" file="HandlerTube.java" line="116" method="processRequest"/>
                  <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="598" method="__doRun"/>
                  <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="557" method="_doRun"/>
                  <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="542" method="doRun"/>
                  <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="439" method="runSync"/>
                  <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="471" 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.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"/>
                  <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="129" method="doGet"/>
                  <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="160" method="doPost"/>
                  <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSSpringServlet" file="WSSpringServlet.java" line="52" method="doPost"/>
                  <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="710" method="service"/>
                  <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="803" method="service"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="290" method="internalDoFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                  <ns2:frame class="com.bullhorn.apiservice.WsdlFilter" file="WsdlFilter.java" line="43" method="doFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                  <ns2:frame class="org.jboss.web.tomcat.filters.ReplyHeaderFilter" file="ReplyHeaderFilter.java" line="96" method="doFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                  <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="376" method="b"/>
                  <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="254" method="c"/>
                  <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="164" method="doFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                  <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                  <ns2:frame class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="230" method="invoke"/>
                  <ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="175" method="invoke"/>
                  <ns2:frame class="org.jboss.web.tomcat.security.SecurityAssociationValve" file="SecurityAssociationValve.java" line="179" method="invoke"/>
                  <ns2:frame class="org.jboss.web.tomcat.security.JaccContextValve" file="JaccContextValve.java" line="84" method="invoke"/>
                  <ns2:frame class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="128" method="invoke"/>
                  <ns2:frame class="org.apache.catalina.valves.ErrorReportValve" file="ErrorReportValve.java" line="104" method="invoke"/>
                  <ns2:frame class="org.jboss.web.tomcat.service.jca.CachedConnectionValve" file="CachedConnectionValve.java" line="157" method="invoke"/>
                  <ns2:frame class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="109" method="invoke"/>
                  <ns2:frame class="org.apache.catalina.connector.CoyoteAdapter" file="CoyoteAdapter.java" line="241" method="service"/>
                  <ns2:frame class="org.apache.coyote.http11.Http11Processor" file="Http11Processor.java" line="844" method="process"/>
                  <ns2:frame class="org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler" file="Http11Protocol.java" line="580" method="process"/>
                  <ns2:frame class="org.apache.tomcat.util.net.JIoEndpoint$Worker" file="JIoEndpoint.java" line="447" method="run"/>
                  <ns2:frame class="java.lang.Thread" file="Thread.java" line="662" method="run"/>
               </ns2:stackTrace>
               <ns2:cause class="javax.xml.soap.SOAPException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
                  <message>javax.xml.stream.XMLStreamException: ParseError at [row,col]:[20,32]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?id&xsi:type&xsi</message>
                  <ns2:stackTrace>
                     <ns2:frame class="com.sun.xml.ws.message.AbstractMessageImpl" file="AbstractMessageImpl.java" line="195" method="readAsSOAPMessage"/>
                     <ns2:frame class="com.sun.xml.ws.handler.SOAPMessageContextImpl" file="SOAPMessageContextImpl.java" line="79" method="getMessage"/>
                     <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="42" method="handleInbound"/>
                     <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="33" method="handleMessage"/>
                     <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="18" method="handleMessage"/>
                     <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="292" method="callHandleMessage"/>
                     <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="135" method="callHandlersRequest"/>
                     <ns2:frame class="com.sun.xml.ws.handler.ServerSOAPHandlerTube" file="ServerSOAPHandlerTube.java" line="134" method="callHandlersOnRequest"/>
                     <ns2:frame class="com.sun.xml.ws.handler.HandlerTube" file="HandlerTube.java" line="116" method="processRequest"/>
                     <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="598" method="__doRun"/>
                     <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="557" method="_doRun"/>
                     <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="542" method="doRun"/>
                     <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="439" method="runSync"/>
                     <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="471" 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.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"/>
                     <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="129" method="doGet"/>
                     <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="160" method="doPost"/>
                     <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSSpringServlet" file="WSSpringServlet.java" line="52" method="doPost"/>
                     <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="710" method="service"/>
                     <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="803" method="service"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="290" method="internalDoFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                     <ns2:frame class="com.bullhorn.apiservice.WsdlFilter" file="WsdlFilter.java" line="43" method="doFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                     <ns2:frame class="org.jboss.web.tomcat.filters.ReplyHeaderFilter" file="ReplyHeaderFilter.java" line="96" method="doFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                     <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="376" method="b"/>
                     <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="254" method="c"/>
                     <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="164" method="doFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                     <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                     <ns2:frame class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="230" method="invoke"/>
                     <ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="175" method="invoke"/>
                     <ns2:frame class="org.jboss.web.tomcat.security.SecurityAssociationValve" file="SecurityAssociationValve.java" line="179" method="invoke"/>
                     <ns2:frame class="org.jboss.web.tomcat.security.JaccContextValve" file="JaccContextValve.java" line="84" method="invoke"/>
                     <ns2:frame class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="128" method="invoke"/>
                     <ns2:frame class="org.apache.catalina.valves.ErrorReportValve" file="ErrorReportValve.java" line="104" method="invoke"/>
                     <ns2:frame class="org.jboss.web.tomcat.service.jca.CachedConnectionValve" file="CachedConnectionValve.java" line="157" method="invoke"/>
                     <ns2:frame class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="109" method="invoke"/>
                     <ns2:frame class="org.apache.catalina.connector.CoyoteAdapter" file="CoyoteAdapter.java" line="241" method="service"/>
                     <ns2:frame class="org.apache.coyote.http11.Http11Processor" file="Http11Processor.java" line="844" method="process"/>
                     <ns2:frame class="org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler" file="Http11Protocol.java" line="580" method="process"/>
                     <ns2:frame class="org.apache.tomcat.util.net.JIoEndpoint$Worker" file="JIoEndpoint.java" line="447" method="run"/>
                     <ns2:frame class="java.lang.Thread" file="Thread.java" line="662" method="run"/>
                  </ns2:stackTrace>
                  <ns2:cause class="org.xml.sax.SAXParseException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
                     <message>ParseError at [row,col]:[20,32]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?id&xsi:type&xsi</message>
                     <ns2:stackTrace>
                        <ns2:frame class="com.sun.xml.ws.message.stream.StreamMessage" file="StreamMessage.java" line="378" method="writePayloadTo"/>
                        <ns2:frame class="com.sun.xml.ws.message.stream.StreamMessage" file="StreamMessage.java" line="459" method="writeTo"/>
                        <ns2:frame class="com.sun.xml.ws.message.AbstractMessageImpl" file="AbstractMessageImpl.java" line="193" method="readAsSOAPMessage"/>
                        <ns2:frame class="com.sun.xml.ws.handler.SOAPMessageContextImpl" file="SOAPMessageContextImpl.java" line="79" method="getMessage"/>
                        <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="42" method="handleInbound"/>
                        <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="33" method="handleMessage"/>
                        <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="18" method="handleMessage"/>
                        <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="292" method="callHandleMessage"/>
                        <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="135" method="callHandlersRequest"/>
                        <ns2:frame class="com.sun.xml.ws.handler.ServerSOAPHandlerTube" file="ServerSOAPHandlerTube.java" line="134" method="callHandlersOnRequest"/>
                        <ns2:frame class="com.sun.xml.ws.handler.HandlerTube" file="HandlerTube.java" line="116" method="processRequest"/>
                        <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="598" method="__doRun"/>
                        <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="557" method="_doRun"/>
                        <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="542" method="doRun"/>
                        <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="439" method="runSync"/>
                        <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="471" 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.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"/>
                        <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="129" method="doGet"/>
                        <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="160" method="doPost"/>
                        <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSSpringServlet" file="WSSpringServlet.java" line="52" method="doPost"/>
                        <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="710" method="service"/>
                        <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="803" method="service"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="290" method="internalDoFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                        <ns2:frame class="com.bullhorn.apiservice.WsdlFilter" file="WsdlFilter.java" line="43" method="doFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                        <ns2:frame class="org.jboss.web.tomcat.filters.ReplyHeaderFilter" file="ReplyHeaderFilter.java" line="96" method="doFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                        <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="376" method="b"/>
                        <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="254" method="c"/>
                        <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="164" method="doFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                        <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                        <ns2:frame class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="230" method="invoke"/>
                        <ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="175" method="invoke"/>
                        <ns2:frame class="org.jboss.web.tomcat.security.SecurityAssociationValve" file="SecurityAssociationValve.java" line="179" method="invoke"/>
                        <ns2:frame class="org.jboss.web.tomcat.security.JaccContextValve" file="JaccContextValve.java" line="84" method="invoke"/>
                        <ns2:frame class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="128" method="invoke"/>
                        <ns2:frame class="org.apache.catalina.valves.ErrorReportValve" file="ErrorReportValve.java" line="104" method="invoke"/>
                        <ns2:frame class="org.jboss.web.tomcat.service.jca.CachedConnectionValve" file="CachedConnectionValve.java" line="157" method="invoke"/>
                        <ns2:frame class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="109" method="invoke"/>
                        <ns2:frame class="org.apache.catalina.connector.CoyoteAdapter" file="CoyoteAdapter.java" line="241" method="service"/>
                        <ns2:frame class="org.apache.coyote.http11.Http11Processor" file="Http11Processor.java" line="844" method="process"/>
                        <ns2:frame class="org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler" file="Http11Protocol.java" line="580" method="process"/>
                        <ns2:frame class="org.apache.tomcat.util.net.JIoEndpoint$Worker" file="JIoEndpoint.java" line="447" method="run"/>
                        <ns2:frame class="java.lang.Thread" file="Thread.java" line="662" method="run"/>
                     </ns2:stackTrace>
                     <ns2:cause class="javax.xml.stream.XMLStreamException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
                        <message>ParseError at [row,col]:[20,32]
Message: http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?id&xsi:type&xsi</message>
                        <ns2:stackTrace>
                           <ns2:frame class="com.sun.xml.stream.XMLReaderImpl" file="XMLReaderImpl.java" line="563" method="next"/>
                           <ns2:frame class="com.sun.xml.ws.util.xml.XMLStreamReaderFilter" file="XMLStreamReaderFilter.java" line="92" method="next"/>
                           <ns2:frame class="com.sun.istack.XMLStreamReaderToContentHandler" file="XMLStreamReaderToContentHandler.java" line="154" method="bridge"/>
                           <ns2:frame class="com.sun.xml.ws.message.stream.StreamMessage" file="StreamMessage.java" line="369" method="writePayloadTo"/>
                           <ns2:frame class="com.sun.xml.ws.message.stream.StreamMessage" file="StreamMessage.java" line="459" method="writeTo"/>
                           <ns2:frame class="com.sun.xml.ws.message.AbstractMessageImpl" file="AbstractMessageImpl.java" line="193" method="readAsSOAPMessage"/>
                           <ns2:frame class="com.sun.xml.ws.handler.SOAPMessageContextImpl" file="SOAPMessageContextImpl.java" line="79" method="getMessage"/>
                           <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="42" method="handleInbound"/>
                           <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="33" method="handleMessage"/>
                           <ns2:frame class="com.bullhorn.apiservice.BhSoapLogHandler" file="BhSoapLogHandler.java" line="18" method="handleMessage"/>
                           <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="292" method="callHandleMessage"/>
                           <ns2:frame class="com.sun.xml.ws.handler.HandlerProcessor" file="HandlerProcessor.java" line="135" method="callHandlersRequest"/>
                           <ns2:frame class="com.sun.xml.ws.handler.ServerSOAPHandlerTube" file="ServerSOAPHandlerTube.java" line="134" method="callHandlersOnRequest"/>
                           <ns2:frame class="com.sun.xml.ws.handler.HandlerTube" file="HandlerTube.java" line="116" method="processRequest"/>
                           <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="598" method="__doRun"/>
                           <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="557" method="_doRun"/>
                           <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="542" method="doRun"/>
                           <ns2:frame class="com.sun.xml.ws.api.pipe.Fiber" file="Fiber.java" line="439" method="runSync"/>
                           <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="471" 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.servlet.ServletAdapter" file="ServletAdapter.java" line="135" method="handle"/>
                           <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="129" method="doGet"/>
                           <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSServletDelegate" file="WSServletDelegate.java" line="160" method="doPost"/>
                           <ns2:frame class="com.sun.xml.ws.transport.http.servlet.WSSpringServlet" file="WSSpringServlet.java" line="52" method="doPost"/>
                           <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="710" method="service"/>
                           <ns2:frame class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="803" method="service"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="290" method="internalDoFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                           <ns2:frame class="com.bullhorn.apiservice.WsdlFilter" file="WsdlFilter.java" line="43" method="doFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                           <ns2:frame class="org.jboss.web.tomcat.filters.ReplyHeaderFilter" file="ReplyHeaderFilter.java" line="96" method="doFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                           <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="376" method="b"/>
                           <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="254" method="c"/>
                           <ns2:frame class="com.intergral.fusionreactor.filter.FusionReactorFilter" file="FusionReactorFilter.java" line="164" method="doFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="235" method="internalDoFilter"/>
                           <ns2:frame class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter"/>
                           <ns2:frame class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="230" method="invoke"/>
                           <ns2:frame class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="175" method="invoke"/>
                           <ns2:frame class="org.jboss.web.tomcat.security.SecurityAssociationValve" file="SecurityAssociationValve.java" line="179" method="invoke"/>
                           <ns2:frame class="org.jboss.web.tomcat.security.JaccContextValve" file="JaccContextValve.java" line="84" method="invoke"/>
                           <ns2:frame class="org.apache.catalina.core.StandardHostValve" file="StandardHostValve.java" line="128" method="invoke"/>
                           <ns2:frame class="org.apache.catalina.valves.ErrorReportValve" file="ErrorReportValve.java" line="104" method="invoke"/>
                           <ns2:frame class="org.jboss.web.tomcat.service.jca.CachedConnectionValve" file="CachedConnectionValve.java" line="157" method="invoke"/>
                           <ns2:frame class="org.apache.catalina.core.StandardEngineValve" file="StandardEngineValve.java" line="109" method="invoke"/>
                           <ns2:frame class="org.apache.catalina.connector.CoyoteAdapter" file="CoyoteAdapter.java" line="241" method="service"/>
                           <ns2:frame class="org.apache.coyote.http11.Http11Processor" file="Http11Processor.java" line="844" method="process"/>
                           <ns2:frame class="org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler" file="Http11Protocol.java" line="580" method="process"/>
                           <ns2:frame class="org.apache.tomcat.util.net.JIoEndpoint$Worker" file="JIoEndpoint.java" line="447" method="run"/>
                           <ns2:frame class="java.lang.Thread" file="Thread.java" line="662" method="run"/>
                        </ns2:stackTrace>
                     </ns2:cause>
                  </ns2:cause>
               </ns2:cause>
            </ns2:exception>
         </detail>
      </S:Fault>
   </S:Body>
</S:Envelope>
My Corporation ID is 1425 and I am looking for someone to determine if there is a Backend problem with Distribution List 660 (and possibly others) that would prevent me from calling that entity through the API v2.0

Thanks

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: API Call to Find DistributionList returns error

Post by s.emmons » Thu Jun 27, 2013 1:46 pm

Hi jbryan2,

I was able to run the request on my side, but I did not get a parse error when trying to run a find for distribution list 660. I simply got returned a null result, indicating that the distribution list does not exist. However, I doublechecked the entitlements on the API user and found one that was missing regarding the rights to view distribution lists. I have added this back, and am now able to retrieve distrbution list 660.

Here's my request and response for your reference:

Request

Code: Select all

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:apis="http://apiservice.bullhorn.com/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <soapenv:Header/>
   <soapenv:Body>
      <apis:find>
        
         <session>XXXXXXXX</session>
         
         <entityName>DistributionList</entityName>
  
         <id xsi:type="xs:int">660</id>

      
      </apis:find>
   </soapenv:Body>
</soapenv:Envelope>
Response

Code: Select all

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:findResponse xmlns:ns2="http://apiservice.bullhorn.com/">
         <return>
            <session>XXXXXXX</session>
            <dto xsi:type="ns4:distributionListDto" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://distlist.entity.bullhorn.com/">
               <dateAdded>2013-06-13T11:02:19.170-04:00</dateAdded>
               <description/>
               <distributionListID>660</distributionListID>
               <groupName/>
               <isPrivate>false</isPrivate>
               <isReadOnly>false</isReadOnly>
               <name>CIO Forum - Cleveland - June 2013</name>
               <ownerID>117400</ownerID>
               <searchURL/>
               <type>Contact</type>
            </dto>
         </return>
      </ns2:findResponse>
   </S:Body>
</S:Envelope>
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

jbryan2
User
Posts: 3
Joined: Thu Jun 27, 2013 11:16 am

Re: API Call to Find DistributionList returns error

Post by jbryan2 » Thu Jun 27, 2013 3:07 pm

Thank you Sam!!!

The calls are working now.

Would you mind checking if our API account is missing any other entitlements? We basically want it to have access to every part of our data. Thanks!

- Jim

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: API Call to Find DistributionList returns error

Post by s.emmons » Thu Jun 27, 2013 3:18 pm

Hi Jim,

No problem at all. I just reviewed the entitlements and everything looks good.
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

Post Reply