Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8485519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:40:27+00:00 2026-06-10T20:40:27+00:00

SoapClient running in wsdl mode does not honor OS proxy exclusions, and doesn’t seem

  • 0

SoapClient running in wsdl mode does not honor OS proxy exclusions, and doesn’t seem to have a flag to add them directly.

This poses a difficulty when the schema definition references both internal and externally defined schemas.
For the test I have pulled the initial wsdl document local. I have enabled the proxy as the schema references w3.org and some other internet based schema definitions. Problem is the local document still references resources both internal and external to proxy and once I enable the proxy, it wants to send every request over it.

I have the following code:

$client = new SoapClient('SomeResource.wsdl',array(
    'proxy_host'=>'10.0.0.1',
    'proxy_port'=>8080,
    'soap_version'=>SOAP_1_1,
    'exceptions'=>true,
    'trace'=>1,
    'cache_wsdl'=>WSDL_CACHE_NONE,
    'login'=>'username',
    'password'=>'password'
));

Running strace:

stat("http://localresource.localdomain.com:1080/some/version/Common.xsd", 0x7fffd94a36d0) = -1 ENOENT (No such file or directory)
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
fcntl(7, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(7, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("10.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in progress)
... timeout here cause it's a local resource ...

I have of course changed the names to protect my client, but I do have localdomain.com in my no_proxy list:

somehost:someuser> env |grep proxy
http_proxy=http://10.0.0.1:8080
ftp_proxy=http://10.0.0.1:8080
https_proxy=http://10.0.0.1:8080
no_proxy=localdomain.com,localhost,127.0.0.1

Adding no_proxy to the SoapClient input has no effect.

Short of pulling all the schemas internal and modifying all those references to also point to locally defined resources, is there any way to get SoapClient to honor the no_proxy rules?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:40:28+00:00Added an answer on June 10, 2026 at 8:40 pm

    I ended up pulling all the schemas internal and modifying all those schemas to also point to locally defined schemas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new in soapclient, I have tried to do some study online and also
In php have a class SoapClient I need a equivalente class in Java, anyone
Given the following code $c= new SoapClient('http://www.webservicex.net/CurrencyConvertor.asmx?WSDL'); $usa = USD; $eng = GBP; doing
I am trying to consume a WSDL from WCF using PHPs SoapClient. When using
I have a client server scenario where the type conversion did by the SoapClient
I have a bunch of generated SOAP client stubs that differ between WSDL versions.
I'm severely annoyed with many shared hosting providers not enabling SoapClient support on their
<?php $a['registrationID']=*******; $a['password']=******; $a['smsPort']=7424; $a['msgID']=0; $soap_url='http://localhost/WebService_GP_ADP_BizTalk_SMS_Orchestrations.wsdl'; $soap = new SoapClient($soap_url); $response=$soap->getReceivedSMS( array (ReceiveSMSRequest =>
In PHP, if you try to instantiate a new SoapClient , and the WSDL
I have a running web service (using EclipseLink as JPA provider) and would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.