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 7906221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:50:15+00:00 2026-06-03T10:50:15+00:00

I’m working with SOAP::WSDL and another company’s custom WSDL file. Every time they make

  • 0

I’m working with SOAP::WSDL and another company’s custom WSDL file. Every time they make a change for me and I recreate my modules, something breaks. Finding the problem is rather tedious because I don’t find a proper way to access the actual request that is sent to the SOAP server.

The only way to get to the request so far has been to use tcpdump in conjunction with wireshark to extract the request and result. That works, but since I don’t have root privileges on the dev machine I have to get an admin over every time I want to do that. I feel there must be another way to get to the HTTP::Request object inside the SOAP::WSDL thing. But if the server returns a fault, I don’t even have a response object, but rather a SOAP::WSDL::SOAP::Typelib::Fault11 object that has no visible relation to the request.

I’ve also tried using the debugger but I’m having trouble finding the actual request part. I’ve not yet understood how to tell the debuger to skip to a specific part deep inside a complex number of packages.

  • 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-03T10:50:16+00:00Added an answer on June 3, 2026 at 10:50 am

    I found a way to at least print out the generated XML code.

    First, I looked at SOAP::WSDL::Client as raina77ow suggested. That wasn’t what I needed, though. But then I came across SOAP::WSDL::Factory::Serializer. There, it says:

    Serializer objects may also be passed directly to SOAP::WSDL::Client
    by using the set_serializer method.

    A little fidgeting and I came up with a wrapper class for SOAP::WSDL::Serializer::XSD which is the default serializer used by SOAP::WSDL. A look at the code helped, too.

    Here’s the module I wrote. It uses SOAP::WSDL::Serializer::XSD as a base class and overloads the new and serialize methods. While it only passes arguments to new, it grabs the returned XML from serialize and prints it, which suffices for debugging. I’m not sure if there’s a way to put it somewhere I can easily get it from.

    package MySerializer;
    use strict;
    use warnings;
    use base qw(SOAP::WSDL::Serializer::XSD);
    
    sub new {
      my $self = shift;
      my $class = ref($self) || $self;
      return $self if ref $self;
    
      # Create the base object and return it
      my $base_object = $class->SUPER::new(@_);
      return bless ($base_object, $class);
    }
    
    sub serialize {
      my ($self, $args_of_ref) = @_;
    
      # This is basically a wrapper function that calls the real Serializer's
      # serialize-method and grabs and prints the returned XML before it
      # giving it back to the caller
    
      my $xml = ref($self)->SUPER::serialize($args_of_ref);
      print "\n\n$xml\n\n"; # here we go
      return $xml;
    }
    
    1;
    

    And here’s how I call it:

    my $serializer = MySerializer->new();
    $self->{'_interface'} = Lib::Interfaces::MyInterface->new();
    $self->{'_interface'}->set_serializer($serializer); # comment out to deactivate
    

    It’s easy to deactivate. Only put a comment in the set_serializer line.

    Of course printing a block of XML to the command line is not very pretty, but it gets the job done. I only need it once in a while why coding/testing, so this is fine I guess.

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

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to show the soap response to UIWebview.. my soap response is, <p><img
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

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.