Skip to content

Commit c4f4cac

Browse files
committed
added headers to burp requests
1 parent dd2123d commit c4f4cac

File tree

2 files changed

+623
-3
lines changed

2 files changed

+623
-3
lines changed

src/main/java/com/ibm/wsdl/xml/WSDLReaderImpl.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ protected Import parseImport(Element importEl,
414414

415415
if (importedDef == null)
416416
{
417-
byte[] request = WSDLParser.helpers.buildHttpRequest(url);
417+
byte[] request = WSDLParser.helpers.buildHttpMessage(WSDLParser.headers,new byte[]{});
418418
IHttpRequestResponse httpRequestResponse = WSDLParser.callbacks.makeHttpRequest(WSDLParser.httpRequestResponse.getHttpService(),request);
419419
byte[] response = httpRequestResponse.getResponse();
420420
IResponseInfo responseInfo = WSDLParser.helpers.analyzeResponse(response);
@@ -815,7 +815,7 @@ protected ExtensibilityElement parseSchema( Class parentType,
815815
if (referencedSchema == null)
816816
{
817817
// We haven't read this schema in before so do it now
818-
byte[] request = WSDLParser.helpers.buildHttpRequest(url);
818+
byte[] request = WSDLParser.helpers.buildHttpMessage(WSDLParser.headers,new byte[]{});
819819
IHttpRequestResponse httpRequestResponse = WSDLParser.callbacks.makeHttpRequest(WSDLParser.httpRequestResponse.getHttpService(),request);
820820
byte[] response = httpRequestResponse.getResponse();
821821
IResponseInfo responseInfo = WSDLParser.helpers.analyzeResponse(response);
@@ -2286,7 +2286,8 @@ public Definition readWSDL(String contextURI, String wsdlURI)
22862286
? StringUtils.getURL(null, contextURI)
22872287
: null;
22882288
URL url = StringUtils.getURL(contextURL, wsdlURI);
2289-
byte[] request = WSDLParser.helpers.buildHttpRequest(url);
2289+
2290+
byte[] request = WSDLParser.helpers.buildHttpMessage(WSDLParser.headers,new byte[]{});
22902291
IHttpRequestResponse httpRequestResponse = WSDLParser.callbacks.makeHttpRequest(WSDLParser.httpRequestResponse.getHttpService(),request);
22912292
byte[] response = httpRequestResponse.getResponse();
22922293
IResponseInfo responseInfo = WSDLParser.helpers.analyzeResponse(response);

0 commit comments

Comments
 (0)