Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
sushidevelopers - Re: [sushidevelopers] RE: GetReport keep throwing a SOAPHeaderException Message Thread: Previous | Next
  • To: James Pritchett <James.Pritchett@xxxxxxxxxxxxxxxxxxxx>, Peggy Meng <pmeng@xxxxxxxxxxxxxx>, "sushidevelopers@xxxxxxxxxxxxx" <sushidevelopers@xxxxxxxxxxxxx>
  • From: "Cornelius, Stephen, Springer UK" <Stephen.Cornelius@xxxxxxxxxxxx>
  • Date: Wed, 25 Sep 2013 08:49:54 +0000
Send Email to sushidevelopers@list.niso.org:
Send new message
Reply to this message
Hi all,

If it's helpful we've posted a sample request for our new SUSHI service on github: https://github.com/SpringerSBM/sushi

Regards,

Stephen Cornelius
Platform Development
Springer SBM
222 Gray's Inn Rd
London
WC1X 8HB

Email: stephen.cornelius@xxxxxxxxxxxx
Tel: +44(0)2031922410
Mob: +44(0)7900158029

From: James Pritchett <James.Pritchett@xxxxxxxxxxxxxxxxxxxx>
Date: Tuesday, 24 September 2013 19:32
To: Peggy Meng <pmeng@xxxxxxxxxxxxxx>, "sushidevelopers@xxxxxxxxxxxxx" <sushidevelopers@xxxxxxxxxxxxx>
Subject: [sushidevelopers] RE: GetReport keep throwing a SOAPHeaderException error

Peggy,

 

First step would be to validate the vendor server and the settings they gave you.

 

Download SOAPUI.  It’s a free tool that allow developers to connect to webservices directly and test the requests and responses.

 

When you open SOAPUI, choose to create a new project and enter the path to the wsdl that the vendor gave you.  It will automatically create a skeleton request for you.

 

Fill in the ? fields with the data that you have below (dates are in yyyy-MM-dd format) and click the green arrow to send the response.  Unless you can get back a response with all the data that you’re looking for, it’s difficult to be able to debug any client application.

 

 

James Pritchett, Sr. Software Engineer

Serials Solutions | 501 N. 34th St. Suite 300 | Seattle, WA 98103 USA

+1 206 336 7645 office

+1 253 709 0884 cell

james.pritchett@xxxxxxxxxxxxxxxxxxxx

 

Serials Solutions, a Proquest business

 

Description: Description: Description: http://www.blingcheese.com/twitter-icon.png Description: Description: Description: facebook_32

 

 

 

 

From: sushidevelopers@xxxxxxxxxxxxx [mailto:sushidevelopers@xxxxxxxxxxxxx] On Behalf Of Peggy Meng
Sent: Monday, September 23, 2013 11:34 AM
To: sushidevelopers@xxxxxxxxxxxxx
Subject: [sushidevelopers] GetReport keep throwing a SOAPHeaderException error

 

Hello,

 

I am a complete newbie to SUSHI developing thus please forgive me if this is a silly question. One of our vendors developed a SUSHI Counter report wsdl for us and I am supposed to use the wsdl to create report. I knew nothing about the service and they did not provide much detail either. All they told me is that the service is “working” and I am left on my own.

 

I am using .Net developing the report thus I add the web service through visual studio and I can see all class and objects and methods. I declared the ReportRequest, ReportResponse and Sushi Service and filled in the information I got from the vendor. Then I called GetReport(ReportRequest) method and it threw a “System.Web.Services.Protocols.SoapHeaderException was unhandled by user code” error. I don’t know what I missed and since there’s very few information I can find online, I am completely in the dark. Can someone help me? Below is my code.

 

Thanks.

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using CounterReport;

 

namespace CounterReport

{

    public partial class _Default : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

           

            CounterReport.ReportRequest rr = new CounterReport.ReportRequest();

            rr.ID = Guid.NewGuid().ToString();

            rr.Created = DateTime.Now;

            rr.CreatedSpecified=true;

            CounterReport.CustomerReference cr = new CounterReport.CustomerReference();

            cr.ID = "000001047715";

            CounterReport.ReportDefinition rd = new CounterReport.ReportDefinition();

            CounterReport.ReportDefinitionFilters filter = new CounterReport.ReportDefinitionFilters();

            CounterReport.Range range = new CounterReport.Range();

            range.Begin = Convert.ToDateTime("2013-04-01");

            range.End= Convert.ToDateTime("2013-09-30");

            filter.UsageDateRange = range;

            rd.Filters = filter;

            rd.Name = "JR1";

            rd.Release = "4";  

            CounterReport.Requestor reqor = new CounterReport.Requestor();

            reqor.ID = "demo";

            reqor.Name = "peggy";

            reqor.Email = "pmeng@xxxxxxxxxxxxxx";   

            rr.Requestor = reqor;

            rr.CustomerReference = cr;

            rr.ReportDefinition = rd;

 

            CounterReport.SushiService ss = new CounterReport.SushiService();

 

           

            

             //site security certification expired, this is the way to bypass the security check

            System.Net.ServicePointManager.ServerCertificateValidationCallback = (Sender, cert, chain, error) =>

            {

                return true;

            };

 

            CounterReport.ReportResponse rre = new CounterReport.ReportResponse();

 

            rre= ss.GetReport(rr);

 

 

 

         

            

        }

    }

 

 

Peggy Meng


By Date: Previous | Next Current Thread By Thread: Previous | Next