Soap request returns http 500 error

This space is made available to users of the EPO Web Services: Open Patent Services and Publication Server Web Service. Users can ask each other questions, exchange experiences and solutions, post ideas. The moderator will use this space to announce changes or information relevant to Web Services users.

Soap request returns http 500 error

Postby sdubuc on Tue Oct 12, 2010 10:15 am

Hello,

I'm facing http 500 Internal server error while retrieving data for the following request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ops="http://ops.epo.org" xmlns:exc="http://www.epo.org/exchange">
<soapenv:Header/>
<soapenv:Body>
<ops:family-and-legal-and-biblio-retrieval legal="true">
<exc:publication-reference data-format="docdb">
<exc:document-id>
<exc:country>EP</exc:country>
<exc:doc-number>1563127</exc:doc-number>
<exc:kind>%%</exc:kind>
</exc:document-id>
</exc:publication-reference>
</ops:family-and-legal-and-biblio-retrieval>
</soapenv:Body>
</soapenv:Envelope>

Normally, I should have a response like "ambiguous reference" or something like that. Could you help me to solve my issue?

Here is the code I'm using to call web service (this is c# code)


Code: Select all
string responseString = string.Empty;
      HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://ops.epo.org/soap-services/");

      request.Method = "POST";
      request.ContentType = "text/xml; charset=utf-8";
      request.Headers.Add("SOAPAction", "family-and-legal-and-biblio-retrieval");
      string requestString = string.empty;
      requestString +="<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
      requestString +="<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ops=\"http://ops.epo.org\" xmlns:exc=\"http://www.epo.org/exchange\">";
      requestString +="<soapenv:Header />";
      requestString +="<soapenv:Body>";
      requestString +="<ops:family-and-legal-and-biblio-retrieval legal="true">";
      requestString +="<exc:publication-reference data-format="docdb">";
      requestString +="<exc:document-id>";
      requestString +="<exc:country>EP</exc:country>";
      requestString +="<exc:doc-number>1563127</exc:doc-number>";
      requestString +="<exc:kind>%%</exc:kind>";
      requestString +="</exc:document-id>";
      requestString +="</exc:publication-reference>";
      requestString +="</ops:family-and-legal-and-biblio-retrieval>";
      requestString +="</soapenv:Body>";
      requestString +="</soapenv:Envelope>";
      request.ContentLength = requestString;
      StreamWriter str = new StreamWriter(request.GetRequestStream());
      str.Write(requestString);
      str.Flush();
      str.Close();

      HttpWebResponse response = (HttpWebResponse)request.GetResponse();
      StreamReader str2 = new StreamReader(response.GetResponseStream());
      responseString = str2.ReadToEnd();


Regards,
Sebastien
sdubuc
 
Posts: 3
Joined: Tue Oct 12, 2010 10:01 am


Re: Soap request returns http 500 error

Postby OPS support on Wed Oct 13, 2010 7:05 am

Dear user,

please try again:

Code: Select all
Request
<ops:family-and-legal-and-biblio-retrieval xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org" >
  <publication-reference data-format="docdb">
    <document-id>
      <country>ep</country>
      <doc-number>1563127</doc-number>
      <kind>%%</kind>
    </document-id>
  </publication-reference>
</ops:family-and-legal-and-biblio-retrieval>


Code: Select all
Result
SOAP fault returned from server: Client: The requested reference was ambiguous.

The complete SOAP message:


<?xml version='1.0' encoding='UTF-8'?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <soapenv:Fault>
        <faultcode>soapenv:Client</faultcode>
        <faultstring xml:lang="en-US">The requested reference was ambiguous.</faultstring>
        <detail>
          <ambiguous-input>
            <publication-reference data-format="docdb" xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org">
              <document-id>
                <country>EP</country>
                <doc-number>1563127</doc-number>
                <kind>%%</kind>
              </document-id>
            </publication-reference>
          </ambiguous-input>
          <resolution>
            <publication-reference data-format="docdb" xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org">
              <document-id>
                <country>EP</country>
                <doc-number>1563127</doc-number>
                <kind>A1</kind>
              </document-id>
            </publication-reference>
          </resolution>
          <resolution>
            <publication-reference data-format="docdb" xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org">
              <document-id>
                <country>EP</country>
                <doc-number>1563127</doc-number>
                <kind>B1</kind>
              </document-id>
            </publication-reference>
          </resolution>
        </detail>
      </soapenv:Fault>
    </soapenv:Body>
  </soapenv:Envelope>


Kind regards,
OPS support
OPS support
 
Posts: 583
Joined: Thu Feb 22, 2007 4:32 pm


Re: Soap request returns http 500 error

Postby SKC on Wed Oct 13, 2010 1:21 pm

Hi,

I noticed an increase in unavailable OPS entries yesterday (Spanish particularly), today I ran our test publication (EP0004366 A3) and it was not found.

This is the request:
<ops:biblio-retrieval xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org">
<publication-reference data-format="docdb">
<document-id>
<country>EP</country>
<doc-number>0004366</doc-number>
<kind>A3</kind>
</document-id>
</publication-reference>
</ops:biblio-retrieval>
We have not made any changes to our code.

Yesterday I did notice this topic:
[url]http://forums.epo.org/open-patent-services-and-publication-server-web-service/topic1582.html[/url]
Is this problem related to
[quote][i]Report this postReply with quoteRe: Document-inquiry: got 1 page instead of 3
by OPS support on Tue 12 Oct, 2010 11:11

Dear user,

sorry, we know of the problem and we are working on it.

For the time being, please carry out your document inquiry with epodoc format and you will get all document IDs[/i][/quote]

Kind regards

Stephen
SKC
 
Posts: 11
Joined: Mon Jun 04, 2007 9:09 am
Location: UK


Re: Soap request returns http 500 error

Postby OPS support on Wed Oct 13, 2010 3:36 pm

Dear Stephen,

first of all: no, this topic is not related to topic1582.

However, users should check their address location (here: <soap:address location="http://ops.epo.org/soap-services/document-inquiry" /> ) as described in our Open Patent Services WSDL: http://ops.epo.org/wsdl/ops.wsdl

for your new request, we tried out your example and it works fine with us:

Code: Select all
Request
<ops:document-inquiry xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org" >
  <publication-reference data-format="docdb">
    <document-id>
      <country>EP</country>
      <doc-number>0004366</doc-number>
      <kind>A3</kind>
    </document-id>
  </publication-reference>
</ops:document-inquiry>

your result should look like this:

Code: Select all
Result
<ops:world-patent-data xmlns="http://www.epo.org/exchange" xmlns:ops="http://ops.epo.org">
  <ops:meta name="elapsed-time" value="30"/>
  <ops:document-inquiry>
    <publication-reference data-format="docdb">
      <document-id>
        <country>EP</country>
        <doc-number>0004366</doc-number>
        <kind>A3</kind>
      </document-id>
    </publication-reference>
    <ops:inquiry-result>
      <publication-reference data-format="docdb">
        <document-id>
          <country>EP</country>
          <doc-number>0004366</doc-number>
          <kind>A3</kind>
        </document-id>
      </publication-reference>
      <ops:document-instance desc="FullDocument" id="EP        0004366A3 I " number-of-pages="2" system="ops.epo.org">
        <ops:document-format-options>
          <ops:document-format>SINGLE_PAGE_PDF</ops:document-format>
          <ops:document-format>SINGLE_PAGE_TIFF</ops:document-format>
        </ops:document-format-options>
        <ops:document-section name="ABSTRACT" start-page="1"/>
        <ops:document-section name="BIBLIOGRAPHY" start-page="1"/>
        <ops:document-section name="SEARCH_REPORT" start-page="2"/>
      </ops:document-instance>
      <ops:document-instance desc="FirstPageClipping" id="EP        0004366PAFP " number-of-pages="1" system="ops.epo.org">
        <ops:document-format-options>
          <ops:document-format>SINGLE_PAGE_PDF</ops:document-format>
          <ops:document-format>SINGLE_PAGE_TIFF</ops:document-format>
          <ops:document-format>FIRST_PAGE_PNG</ops:document-format>
        </ops:document-format-options>
        <ops:document-section name="ABSTRACT" start-page="1"/>
        <ops:document-section name="BIBLIOGRAPHY" start-page="1"/>
      </ops:document-instance>
    </ops:inquiry-result>
  </ops:document-inquiry>
</ops:world-patent-data>

As for the Spanish entries could you send us an example, maybe in a separate topic?

Thank you,
kind regards,
OPS support
OPS support
 
Posts: 583
Joined: Thu Feb 22, 2007 4:32 pm


Re: Soap request returns http 500 error

Postby sdubuc on Wed Oct 20, 2010 9:02 am

Dear support,

Actually, I'm still getting the same error (http 500), therefore I don't have any clues how to solve this, could you help me?

Regards,
Sebastien
sdubuc
 
Posts: 3
Joined: Tue Oct 12, 2010 10:01 am


Re: Soap request returns http 500 error

Postby OPS support on Wed Oct 20, 2010 10:53 am

Dear user,

There are several situations when the OPS system responds with an error message embedded within the SOAP fault element
OPS Biblio Request (Retrieval Service) is working fine today so you should be able to retrieve information. Users usually get this message when the location to where a request is sent is not correct so that would be the first thing I would check.

For Biblio Retrieval a location should be:

Code: Select all
  <wsdl:service name="OPSBiblioRetrievalService">
    <wsdl:port name="BiblioRetrievalPort" binding="tns:BiblioRetrievalBinding">
      <soap:address location="http://ops.epo.org/soap-services/biblio-retrieval"/>
    </wsdl:port>
  </wsdl:service>


If this is not causing your problem you should check if your SOAP request is correct. You can find examples of requests and responses on this webpage: http://www.epo.org/patents/patent-information/free/open-patent-services/input.html

Often the reason is web service unavailability, lack of server resources to process the request, incorrect request format or ambiguity.
In the OPS manual (chapter 4.6.1) you will find a list of the most frequent error messages:http://documents.epo.org/projects/babylon/eponet.nsf/0/bd56b897eb1bb1aac125765e0057187f/$FILE/OPS_v2_105_en.pdf


I hope this will help you solve the problem,

Kind regards,

OPS support
OPS support
 
Posts: 583
Joined: Thu Feb 22, 2007 4:32 pm


Re: Soap request returns http 500 error

Postby sdubuc on Tue Oct 26, 2010 8:47 am

Dear support,

After doing some another test cases, I have observed that I nerver received a soap message when my request was bad, each time I received an http 500 error instead of receiving an error message embedded within SOAP Fault element with the description of the underlying problem. Do you have a portal where I can validate my soap queries?

Regards,
Sebastien
sdubuc
 
Posts: 3
Joined: Tue Oct 12, 2010 10:01 am


Re: Soap request returns http 500 error

Postby OPS support on Wed Oct 27, 2010 8:22 am

Dear user,

Please have as look at our website: http://www.epo.org/patents/patent-information/free/open-patent-services.html and http://www.epo.org/patents/patent-information/free/open-patent-services/input.html for technical documentation and input and response examples in OPS.

Kind regards,

OPS support
OPS support
 
Posts: 583
Joined: Thu Feb 22, 2007 4:32 pm


Re: Soap request returns http 500 error

Postby aCornel on Mon Jan 10, 2011 11:17 am

I saw the webpage with the examples (http://www.epo.org/patents/patent-information/free/open-patent-services/input.html)
but is there any place that we can find the OPS standards when it comes to the field names that can be used in the soap messages?
(For example "AB=Abstract", "Ti=title")? This is quite urgent. If anybody knows any link with this info, please post it. Thank you.
aCornel
 
Posts: 1
Joined: Mon Jan 10, 2011 11:10 am


Re: Soap request returns http 500 error

Postby OPS support on Mon Jan 10, 2011 12:02 pm

Dear user,

The list of abbreviations used in OPS can be found on our website: http://www.epo.org/patents/patent-information/free/open-patent-services.html, under "OPS web services description" - Chapter 4.7 Common Query Language (look under Chapter 4.7.1. from page 45 on).

Kind regards,

OPS support
OPS support
 
Posts: 583
Joined: Thu Feb 22, 2007 4:32 pm


Return to Open Patent Services and Publication Server Web Service



© European Patent Office Legal notice Terms of use 
cron